Skip to content

Commit 542d6c5

Browse files
committed
Apply black
1 parent 463b247 commit 542d6c5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,8 @@ def help_text(self):
19551955
return self.version_help_text() + "\n" + self.key_help_text()
19561956

19571957
def version_help_text(self):
1958-
help_message = _("""
1958+
help_message = _(
1959+
"""
19591960
Thanks for using bpython!
19601961
19611962
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):
19751976
You can also set which pastebin helper and which external editor to use.
19761977
See {example_config_url} for an example config file.
19771978
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)
19791981

19801982
return f"bpython-curtsies version {bpython.__version__} using curtsies version {curtsies.__version__}\n{help_message}"
19811983

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@ def git_describe_to_python_version(version):
9494
try:
9595
# get version from existing version file
9696
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+
)
98104
version = version.strip()
99105
except OSError:
100106
pass
@@ -113,7 +119,7 @@ def git_describe_to_python_version(version):
113119

114120
with open(version_file, "w") as vf:
115121
vf.write("# Auto-generated file, do not edit!\n")
116-
vf.write(f"__version__ = \"{version}\"\n")
122+
vf.write(f'__version__ = "{version}"\n')
117123

118124

119125
cmdclass = {"build": build}

0 commit comments

Comments
 (0)