mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-14 12:42:27 +00:00
remove unnecessary import
This commit is contained in:
parent
bb6f9ee367
commit
4ecabadae9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user