File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1955,7 +1955,8 @@ def help_text(self):
1955
1955
return self .version_help_text () + "\n " + self .key_help_text ()
1956
1956
1957
1957
def version_help_text (self ):
1958
- help_message = _ ("""
1958
+ help_message = _ (
1959
+ """
1959
1960
Thanks for using bpython!
1960
1961
1961
1962
See http://bpython-interpreter.org/ for more information and http://docs.bpython-interpreter.org/ for docs.
@@ -1975,7 +1976,8 @@ def version_help_text(self):
1975
1976
You can also set which pastebin helper and which external editor to use.
1976
1977
See {example_config_url} for an example config file.
1977
1978
Press {config.edit_config_key} to edit this config file.
1978
- """ ).format (example_config_url = EXAMPLE_CONFIG_URL , config = self .config )
1979
+ """
1980
+ ).format (example_config_url = EXAMPLE_CONFIG_URL , config = self .config )
1979
1981
1980
1982
return f"bpython-curtsies version { bpython .__version__ } using curtsies version { curtsies .__version__ } \n { help_message } "
1981
1983
Original file line number Diff line number Diff line change @@ -94,7 +94,13 @@ def git_describe_to_python_version(version):
94
94
try :
95
95
# get version from existing version file
96
96
with open (version_file ) as vf :
97
- version = vf .read ().strip ().split ("=" )[- 1 ].replace ("'" , "" ).replace ("\" " , "" )
97
+ version = (
98
+ vf .read ()
99
+ .strip ()
100
+ .split ("=" )[- 1 ]
101
+ .replace ("'" , "" )
102
+ .replace ('"' , "" )
103
+ )
98
104
version = version .strip ()
99
105
except OSError :
100
106
pass
@@ -113,7 +119,7 @@ def git_describe_to_python_version(version):
113
119
114
120
with open (version_file , "w" ) as vf :
115
121
vf .write ("# Auto-generated file, do not edit!\n " )
116
- vf .write (f" __version__ = \ "{ version } \ "\n " )
122
+ vf .write (f' __version__ = "{ version } "\n ' )
117
123
118
124
119
125
cmdclass = {"build" : build }
You can’t perform that action at this time.
0 commit comments