From 6756c69580b0b84c762d682346557345e9af0615 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 20 Dec 2008 23:06:53 +0000 Subject: [PATCH] Fix some typos --- deluge/core/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 2522fcb25..9acc7526c 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -85,13 +85,13 @@ class TorrentOptions(dict): return self.items().iteritems() def has_key(self, key): - return key in super(TorrentOptions, self) or key in self.default_keys + return super(TorrentOptions, self).has_key(key) or key in self.default_keys def __setitem__(self, key, value): super(TorrentOptions, self).__setitem__(key, value) def __getitem__(self, key): - if key in super(TorrentOptions, self): + if super(TorrentOptions, self).has_key(key): return super(TorrentOptions, self).__getitem__(key) elif key in self.default_keys and self.default_keys[key] in self.config: return self.config[self.default_keys[key]]