From f8cf65d4271254dd89662cb6190adc5b426c6d2b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:44:03 +0200 Subject: 'from time' -> 'import time' and so on... (2) --- pyload/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/utils') 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)) -- cgit v1.2.3