From 7b6d7df38bc701b6236f7e5048db425f0833e4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 12 Feb 2018 21:34:58 +0100 Subject: [PATCH] UDS 3.0 will be only python 3 compatible. We have upgrade django to 2.x, so we need python 3 to use it --- server/src/uds/core/util/FileStorage.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/src/uds/core/util/FileStorage.py b/server/src/uds/core/util/FileStorage.py index c1320311..3f97d0f8 100644 --- a/server/src/uds/core/util/FileStorage.py +++ b/server/src/uds/core/util/FileStorage.py @@ -73,11 +73,9 @@ class FileStorage(Storage): self.cache._cache.flush_all() # On start, ensures that cache is empty to avoid surprises - # noinspection PyArgumentList - Storage.__init__(self, *args, **kwargs) + Storage.__init__(self, *args, **kwargs) # @UndefinedVariable def get_valid_name(self, name): - logger.debug('Name in get_valid_name: {}'.format(name)) if name is None: return name return name.replace('\\', os.path.sep) @@ -91,7 +89,6 @@ class FileStorage(Storage): return 'fstor' + six.text_type(hash(self.get_valid_name(name))) def _dbFileForReadOnly(self, name): - logger.debug('Name in _dbFileForReadOnly: {}'.format(name)) # If we have a cache, & the cache contains the object if self.cache is not None: dbf = self.cache.get(self._getKey(name)) @@ -101,7 +98,6 @@ class FileStorage(Storage): return self._dbFileForReadWrite(name) def _dbFileForReadWrite(self, name): - logger.debug('Name in _dbFileForReadWrite: {}'.format(name)) f = DBFile.objects.get(name=self.get_valid_name(name)) self._storeInCache(f) return f