1. ollyc
  2. toffee


ol...@ollycope.com  committed d461974

The __enter__ method of a context manager should take no arguments

  • Participants
  • Parent commits 93d993d
  • Branches default

Comments (0)

Files changed (1)

File toffee.py

View file
 from itertools import count
 from functools import reduce
-__version__ = '0.1.2dev'
+__version__ = '0.1.1dev'
 class Factory(object):
         self.factoryoptions = {}
-    def __enter__(self, *args, **kwargs):
-        return self.setup(*args, **kwargs)
+    def __enter__(self):
+        return self.setup()
     def __exit__(self, type, value, tb):
         if type: