diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-07 20:11:16 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-07 20:11:16 +0100 |
commit | 1bb6ebf544b43cacf7c0755c5a8608b79b95e2d6 (patch) | |
tree | c09084a44bcde0528db1007c026ef2eb6a349c05 /module/plugins/Crypter.py | |
parent | closed #486 (diff) | |
download | pyload-1bb6ebf544b43cacf7c0755c5a8608b79b95e2d6.tar.xz |
MultiHoster plugin type, some fixes, new documentation structure
Diffstat (limited to 'module/plugins/Crypter.py')
-rw-r--r-- | module/plugins/Crypter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py index 5d164da64..3e423881e 100644 --- a/module/plugins/Crypter.py +++ b/module/plugins/Crypter.py @@ -23,7 +23,10 @@ class Package: return self.name == other.name and self.urls == other.urls def __repr__(self): - return "<CrypterPackage name=%s, links=%s, dest=%s" % (self.name, self.urls, self.dest) + return u"<CrypterPackage name=%s, links=%s, dest=%s" % (self.name, self.urls, self.dest) + + def __hash__(self): + return hash(self.name) ^ hash(frozenset(self.urls)) ^ hash(self.dest) class PyFileMockup: """ Legacy class needed by old crypter plugins """ |