Skip to content

Commit

Permalink
Python 3.5-friendly syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
SethMMorton committed Nov 20, 2020
1 parent a27925b commit 2370022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/generate_new_unicode_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
cwd = os.path.abspath(os.getcwd())
desired_this_file = os.path.join(cwd, "dev", this_base)
if this_file != desired_this_file:
sys.exit(f"{this_base} must be called from project root")
sys.exit(this_base + " must be called from project root")

# We will write the new numeric hex collection to a natsort package file.
target = os.path.join(cwd, "natsort", "unicode_numeric_hex.py")
Expand All @@ -40,6 +40,6 @@
if a in "0123456789":
continue
if unicodedata.numeric(a, None) is not None:
print(f" 0x{i:X},", file=fl)
print(" 0x{:X},".format(i), file=fl)

print(")", file=fl)

0 comments on commit 2370022

Please sign in to comment.