devtools/testlib.py
changeset 10614 57dfde80df11
parent 10612 84468b90e9c1
child 10621 987fbc88f097
--- a/devtools/testlib.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/devtools/testlib.py	Tue Sep 15 15:33:47 2015 +0200
@@ -63,7 +63,7 @@
     def do_view(self, arg):
         import webbrowser
         data = self._getval(arg)
-        with file('/tmp/toto.html', 'w') as toto:
+        with open('/tmp/toto.html', 'w') as toto:
             toto.write(data)
         webbrowser.open('file:///tmp/toto.html')