Unverified Kaydet (Commit) 6097e30e authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

flake error `F821 undefined name 'file'` fixed.

üst daa53d19
......@@ -49,8 +49,8 @@ class AutoXmlTestCase(unittest.TestCase):
self.assertEqual(len(a.heality.tith), 100)
self.assert_(not a.errors())
a.print_text(file('/tmp/a', 'w'))
la = file('/tmp/a').readlines()
a.print_text(open('/tmp/a', 'w'))
la = open('/tmp/a').readlines()
self.assert_(util.any(lambda x: x.find('02012018') != -1, la))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment