Пример #1
0
 def testDecodeComp(self):
     self.assertEqual(("foo", {"V": "1"}), naming.decode_id("foo$V1"))
Пример #2
0
 def testDecodeNoComp(self):
     self.assertEqual(("foo", dict()), naming.decode_id("foo"))
Пример #3
0
    def testDecodeComp(self):
        self.assertEqual(("foo", {"V":"1"}), naming.decode_id("foo$V1"))

        
Пример #4
0
 def testDecodeNoComp(self):
     self.assertEqual(("foo", dict()), naming.decode_id("foo"))
Пример #5
0
 def visit_Name(self, node):
     name, components = naming.decode_id(node.id)
     if "P" in components:
         self.found_vars.append(name)
Пример #6
0
 def visit_Name(self, node):
     name, components = naming.decode_id(node.id)
     if "P" in components:
         self.found_vars.append(name)