X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Fprofile.py;h=87f02a9e5fffadebbe6c682f9c7ae87c2e97a77f;hb=bbcdf86a60aac903b127ce5c038834a85eac883f;hp=2a82df4bd59a1bfc483f228ee4948bd59b5694e6;hpb=375a030d6a984383643afab2ad33289ff4f35a74;p=automanga.git diff --git a/manga/profile.py b/manga/profile.py index 2a82df4..87f02a9 100644 --- a/manga/profile.py +++ b/manga/profile.py @@ -49,6 +49,7 @@ def splitline(line): elif c.isspace(): ret.append(buf) buf = "" + a = False break elif c == "\\" and p < len(line): buf += bsq(line[p]) @@ -104,6 +105,12 @@ class manga(object): return default return self.props[key] + def __getitem__(self, key): + return self.props[key] + + def __contains__(self, key): + return key in self.props + def setprop(self, key, val): self.props[key] = val