Commits

Anonymous committed daa3dd2

Bugfix

Comments (0)

Files changed (1)

 
 
     def generate_globalon(self):
-        f = self.create_function(0)
+        f = self.create_function([])
         f.content.append("global len")
         f.content.append("len = lambda x : 1")
         return f
 
     def generate_globaloff(self):
-        f = self.create_function(0)
+        f = self.create_function([])
         f.content.append("global len")
         f.content.append("del len")
         return f
 
         iter = iter_gen.get_iterable(["1", "2", "3", "4"])
 
-        f = self.create_function(0)
+        f = self.create_function([])
         f.content.extend(
             [
                 CallStatement(fon, []),