Cleaning some (web upload based) garbage

This commit is contained in:
Miroslav Stampar
2012-12-13 13:19:47 +01:00
parent 5150172178
commit df0f08bc6a
6 changed files with 26 additions and 41 deletions

View File

@@ -38,7 +38,6 @@ from subprocess import Popen as execute
from xml.dom import minidom
from xml.sax import parse
from extra.cloak.cloak import decloak
from extra.safe2bin.safe2bin import safecharencode
from lib.core.bigarray import BigArray
from lib.core.data import conf
@@ -1416,14 +1415,6 @@ def showStaticWords(firstPage, secondPage):
logger.info(infoMsg)
def decloakToNamedStream(filepath, name=None):
class _(StringIO):
__len__ = property(lambda self: self.len)
retVal = _(decloak(filepath))
retVal.name = name
return retVal
def isWindowsPath(filepath):
"""
Returns True if given filepath is in Windows format