Commits

Anonymous committed be5347d

Move the "global" declaration to make coverage happy

  • Participants
  • Parent commits d274a80

Comments (0)

Files changed (1)

File pyhttprpc/serializer/pyamf_serializer.py

         """
         BaseSerializer.__init__(self, allowed_imports)
 
+        global _old_get_class_alias
         if monkey_patch and not _old_get_class_alias:
-            global _old_get_class_alias
             _old_get_class_alias = pyamf.get_class_alias
             pyamf.get_class_alias = _new_get_class_alias