From c126f738bd5be581d5321521eedc9b14a8165a0e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 1 May 2015 18:11:25 +0200 Subject: Use 'import' instead 'from' (2) --- pyload/plugin/extractor/UnRar.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyload/plugin/extractor') diff --git a/pyload/plugin/extractor/UnRar.py b/pyload/plugin/extractor/UnRar.py index 83821cdc1..2efba9cd4 100644 --- a/pyload/plugin/extractor/UnRar.py +++ b/pyload/plugin/extractor/UnRar.py @@ -2,11 +2,9 @@ import os import re +import string import subprocess -from glob import glob -from string import digits - from pyload.plugin.Extractor import Extractor, ArchiveError, CRCError, PasswordError from pyload.utils import fs_decode, fs_encode, fs_join @@ -136,7 +134,7 @@ class UnRar(Extractor): self.notifyProgress(int(s)) s = "" # not reading a digit -> therefore restart - elif c not in digits: + elif c not in string.digits: s = "" # add digit to progressstring else: -- cgit v1.2.3