File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,9 @@ def _sorted_merge(*dicts):
77
77
78
78
def _create_global_config (args ):
79
79
username = input (
80
- f"Please enter the name you would want future work to be credited to "
81
- f"[{ args .get ('username' , '' )} ]: "
80
+ f"Please enter the name you would want future work to be credited to " f"[{ args .get ('username' , '' )} ]: "
82
81
).strip () or args .get ("username" , "" )
83
- email = input (
84
- f"Please enter the your email "
85
- f"[{ args .get ('email' , '' )} ]: "
86
- ).strip () or args .get ("email" , "" )
82
+ email = input (f"Please enter the your email " f"[{ args .get ('email' , '' )} ]: " ).strip () or args .get ("email" , "" )
87
83
return_bool = False if username is None or email is None else True
88
84
with open (Path ().home () / "diffpyconfig.json" , "w" ) as f :
89
85
f .write (json .dumps ({"username" : stringify (username ), "email" : stringify (email )}))
You can’t perform that action at this time.
0 commit comments