diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 02:44:03 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 03:22:38 +0200 |
commit | f8cf65d4271254dd89662cb6190adc5b426c6d2b (patch) | |
tree | 3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/utils | |
parent | 'from time' -> 'import time' and so on... (diff) | |
download | pyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz |
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/utils')
-rw-r--r-- | pyload/utils/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 99c470048..864a214cc 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -6,6 +6,7 @@ import bitmath import os import re +import string import sys import time import urllib @@ -13,7 +14,6 @@ import urllib # from gettext import gettext import pylgettext as gettext from htmlentitydefs import name2codepoint -from string import maketrans # abstraction layer for json operations try: @@ -56,7 +56,7 @@ def remove_chars(string, repl): return string else: if type(string) == str: - return string.translate(maketrans("", ""), repl) + return string.translate(string.maketrans("", ""), repl) elif type(string) == unicode: return string.translate(dict((ord(s), None) for s in repl)) |