1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 08:12:27 +00:00

remove unnecessary import

This commit is contained in:
J. Fernando Sánchez 2019-01-09 19:31:51 +01:00
parent bb6f9ee367
commit 4ecabadae9

View File

@ -19,7 +19,6 @@ def ignore(dchars):
tbl = str.maketrans("", "", deletechars) tbl = str.maketrans("", "", deletechars)
ignore = lambda s: s.translate(tbl) ignore = lambda s: s.translate(tbl)
else: else:
from functools import partial
def ignore(s): def ignore(s):
return string.translate(s, None, deletechars) return string.translate(s, None, deletechars)
return ignore return ignore