summaryrefslogtreecommitdiffstats
path: root/pyload/utils/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r--pyload/utils/__init__.py4
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))