Mercurial > p > roundup > code
diff roundup/backends/__init__.py @ 4357:13b3155869e0
Beginnings of a big code cleanup / modernisation to make 2to3 happy
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 22 Feb 2010 05:26:57 +0000 |
| parents | ab4563e97d22 |
| children | 6e3e4f24c753 |
line wrap: on
line diff
--- a/roundup/backends/__init__.py Fri Feb 19 05:09:38 2010 +0000 +++ b/roundup/backends/__init__.py Mon Feb 22 05:26:57 2010 +0000 @@ -38,7 +38,7 @@ '''Get a specific backend by name.''' vars = globals() # if requested backend has been imported yet, return current instance - if vars.has_key(name): + if name in vars: return vars[name] # import the backend module module_name = 'back_%s' % name
