Skip to content

Commit 13b1f91

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent f8ab1e8 commit 13b1f91

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

distutils/command/build_scripts.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ def _validate_shebang(shebang, encoding):
155155
try:
156156
shebang.encode('utf-8')
157157
except UnicodeEncodeError:
158-
raise ValueError(
159-
f"The shebang ({shebang!r}) is not encodable " "to utf-8"
160-
)
158+
raise ValueError(f"The shebang ({shebang!r}) is not encodable " "to utf-8")
161159

162160
# If the script is encoded to a custom encoding (use a
163161
# #coding:xxx cookie), the shebang has to be encodable to

distutils/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def get_host_platform():
3030
# even with older Python versions when distutils was split out.
3131
# Now it delegates to stdlib sysconfig, but maintains compatibility.
3232

33-
3433
if sys.version_info < (3, 9):
3534
if os.name == "posix" and hasattr(os, 'uname'):
3635
osname, host, release, version, machine = os.uname()

0 commit comments

Comments
 (0)