]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/views/base.py
Use the 'in' operator instead of dict.has_key(), which has been deprecated
[patchwork] / apps / patchwork / views / base.py
index 2f6b602f18ae68e16a692aefda049ef3987c1d0d..c0e68ed409034b6ed16715b2702f4927a77f3b3d 100644 (file)
@@ -76,7 +76,7 @@ if settings.ENABLE_XMLRPC:
 
 def help(request, path):
     context = PatchworkRequestContext(request)
-    if help_pages.has_key(path):
+    if path in help_pages:
         return render_to_response('patchwork/help/' + help_pages[path], context)
     raise Http404