Fixing the MediaProcessor context manager so it actually, you know, works :)
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 12 Aug 2013 15:48:07 +0000 (10:48 -0500)
committerRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 22:30:17 +0000 (15:30 -0700)
This commit sponsored by Mikiya Okuno.  Thank you!

mediagoblin/processing/__init__.py

index bfb787809bf7afc4db676bfa2771b6e717c312b1..9493091b13bf1d36539919b246242e00311e5ce9 100644 (file)
@@ -123,6 +123,7 @@ class MediaProcessor(object):
 
     def __enter__(self):
         self.workbench = mgg.workbench_manager.create()
+        return self
 
     def __exit__(self, *args):
         self.workbench.destroy()