diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 17:02:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 17:02:34 (GMT) |
commit | bf82e374ee737992235cbe944c9ddbd58236a892 (patch) | |
tree | f8c8dccaa76d58f9cb7d8cc0abb1355be75ee369 /Tools/webchecker/wcgui.py | |
parent | acbca71ea775fc488bead0876d0cdbd48670dcbc (diff) | |
download | cpython-bf82e374ee737992235cbe944c9ddbd58236a892.zip cpython-bf82e374ee737992235cbe944c9ddbd58236a892.tar.gz cpython-bf82e374ee737992235cbe944c9ddbd58236a892.tar.bz2 |
More 2to3 fixes in the Tools directory. Fixes #2893.
Diffstat (limited to 'Tools/webchecker/wcgui.py')
-rwxr-xr-x | Tools/webchecker/wcgui.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Tools/webchecker/wcgui.py b/Tools/webchecker/wcgui.py index 835d008..4ce613a 100755 --- a/Tools/webchecker/wcgui.py +++ b/Tools/webchecker/wcgui.py @@ -257,20 +257,20 @@ class CheckerWindow(webchecker.Checker): d = self.__details d.clear() d.put("URL: %s\n" % self.format_url(url)) - if self.bad.has_key(url): + if url in self.bad: d.put("Error: %s\n" % str(self.bad[url])) if url in self.roots: d.put("Note: This is a root URL\n") - if self.done.has_key(url): + if url in self.done: d.put("Status: checked\n") o = self.done[url] - elif self.todo.has_key(url): + elif url in self.todo: d.put("Status: to check\n") o = self.todo[url] else: d.put("Status: unknown (!)\n") o = [] - if (not url[1]) and self.errors.has_key(url[0]): + if (not url[1]) and url[0] in self.errors: d.put("Bad links from this page:\n") for triple in self.errors[url[0]]: link, rawlink, msg = triple @@ -298,9 +298,9 @@ class CheckerWindow(webchecker.Checker): def newlink(self, url, origin): webchecker.Checker.newlink(self, url, origin) - if self.done.has_key(url): + if url in self.done: self.__done.insert(url) - elif self.todo.has_key(url): + elif url in self.todo: self.__todo.insert(url) self.newstatus() @@ -351,7 +351,7 @@ class ListPanel: def selectedindices(self): l = self.list.curselection() if not l: return [] - return map(int, l) + return list(map(int, l)) def insert(self, url): if url not in self.items: |