Skip to content

Commit 0fec61f

Browse files
committed
Note future alternatives for remove_prefix/suffix
1 parent df656ab commit 0fec61f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nextstrain/cli/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def colored(color, text):
6464
)
6565

6666

67+
# TODO: Use str.removeprefix/removesuffix once Python 3.9 is the minimum supported version.
6768
def remove_prefix(prefix, string):
6869
return re.sub('^' + re.escape(prefix), '', string)
6970

0 commit comments

Comments
 (0)