<p>我有一些文件的代码是为windows格式化的。当我试图在linux机器上运行它们时,我对文件编码有问题。有人能提出解决办法吗</p>
<p>当我在窗户上跑步时我得到-</p>
<pre><code>This was return from redis
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/bsingh/python_files/lib/Site.py", line 85, in monitor
self.update1()
File "/home/bsingh/python_files/lib/Site.py", line 78, in update1
for entry in new_pastes[::-1]:
TypeError: 'NoneType' object has no attribute '__getitem__'
</code></pre>