1. Thomas Waldmann
  2. EmeraldTree

Commits

Thomas Waldmann  committed c765f24

fix unresolved reference in register_namespace classmethod

  • Participants
  • Parent commits 3f325a6
  • Branches default
  • Tags 0.9.2

Comments (0)

Files changed (1)

File emeraldtree/tree.py

View file
  • Ignore whitespace
             raise ValueError("Prefix format reserved for internal use")
         for k, v in cls._namespace_map.items():
             if k == uri or v == prefix:
-                del _namespace_map[k]
+                del cls._namespace_map[k]
         cls._namespace_map[uri] = prefix
 
     _namespace_map = {