1. He Jun
  2. moin-2.0

Commits

Thomas Waldmann  committed ac5c618

use isinstance instead of type/types.X

  • Participants
  • Parent commits b8cfcf3
  • Branches namespaces

Comments (0)

Files changed (1)

File MoinMoin/items/__init__.py

View file
             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[:]