changeset 1939:ac5c618b96ca namespaces

use isinstance instead of type/types.X
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 03 Feb 2013 17:38:03 +0100
parents b8cfcf3bb9aa
children c3624283c9ec
files MoinMoin/items/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Feb 03 16:05:21 2013 +0100
+++ b/MoinMoin/items/__init__.py	Sun Feb 03 17:38:03 2013 +0100
@@ -415,7 +415,7 @@
             name = self.name
         oldname = meta.get(NAME)
         if oldname:
-            if type(oldname) is not types.ListType:
+            if not isinstance(oldname, list):
                 oldname = [oldname]
             if delete or name not in oldname: # this is a delete or rename
                 meta[NAME_OLD] = oldname[:]