[Twisted-Python] An error occurred with twisted 15.2.1 & python 3.4.3 on windows

Gelin Yan dynamicgl at gmail.com
Mon Jul 27 05:17:12 MDT 2015


Hi All

   When I tried to run a simple twisted program and noticed there was an
error as following:

File "C:\Python34\lib\site-packages\twisted\python\lockfile.py", line 52,
in <module>
    _open = file
NameError: name 'file' is not defined


   simply replace file as open like

_open = open

   can run the program.

  Is it a bug?

Regards

gelin yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20150727/48302d93/attachment.html>


More information about the Twisted-Python mailing list