diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 12:18:22 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-11 12:18:22 +0200 |
commit | d68938a9a7fbfb079b0a6de469de766b5892d769 (patch) | |
tree | 443b21cc277126fa44486bc940f8aa521f92564d /module/plugins/Container.py | |
parent | Use wait to set time in SimpleHoster plugins (diff) | |
download | pyload-d68938a9a7fbfb079b0a6de469de766b5892d769.tar.xz |
Remove bad whitespaces
Merges vuolter/pyload@e4b2562
Diffstat (limited to 'module/plugins/Container.py')
-rw-r--r-- | module/plugins/Container.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/Container.py b/module/plugins/Container.py index fe6e04ca4..685ceac20 100644 --- a/module/plugins/Container.py +++ b/module/plugins/Container.py @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. - + @author: mkaay """ @@ -38,19 +38,19 @@ class Container(Crypter): self.setup() self.thread = thread - + self.loadToDisk() self.decrypt(self.pyfile) self.deleteTmp() - + self.createPackages() - + def loadToDisk(self): """loads container to disk if its stored remotely and overwrite url, or check existent on several places at disk""" - + if self.pyfile.url.startswith("http"): self.pyfile.name = re.findall("([^\/=]+)", self.pyfile.url)[-1] content = self.load(self.pyfile.url) @@ -58,7 +58,7 @@ class Container(Crypter): f = open(self.pyfile.url, "wb" ) f.write(content) f.close() - + else: self.pyfile.name = basename(self.pyfile.url) if not exists(self.pyfile.url): @@ -66,7 +66,7 @@ class Container(Crypter): self.pyfile.url = join(pypath, self.pyfile.url) else: self.fail(_("File not exists.")) - + def deleteTmp(self): if self.pyfile.name.startswith("tmp_"): |