The following issues were found
tests/basics/object1.py
1 issues
Line: 1
Column: 1
# test builtin object()
# creation
object()
# printing
print(repr(object())[:7])
Reported by Pylint.
tests/io/argv.py
1 issues
Line: 1
Column: 1
try:
import usys as sys
except ImportError:
import sys
print(sys.argv)
Reported by Pylint.
tests/io/file1.py
1 issues
Line: 1
Column: 1
f = open("io/data/file1")
print(f.read(5))
print(f.readline())
print(f.read())
f = open("io/data/file1")
print(f.readlines())
f = open("io/data/file1", "r")
print(f.readlines())
f = open("io/data/file1", "rb")
Reported by Pylint.
tests/io/file_iter.py
1 issues
Line: 1
Column: 1
f = open("io/data/file1")
for l in f:
print(l)
Reported by Pylint.
tests/io/file_long_read.py
1 issues
Line: 1
Column: 1
f = open("io/data/file1")
b = f.read(100)
print(len(b))
Reported by Pylint.
tests/io/file_long_read2.py
1 issues
Line: 1
Column: 1
f = open("io/data/bigfile1")
b = f.read()
print(len(b))
print(b)
Reported by Pylint.
tests/io/file_long_read3.py
1 issues
Line: 1
Column: 1
f = open("io/data/bigfile1", "rb")
b = f.read(512)
print(len(b))
print(b)
Reported by Pylint.
tests/io/file_readinto.py
1 issues
Line: 1
Column: 1
b = bytearray(30)
f = open("io/data/file1", "rb")
print(f.readinto(b))
print(b)
f = open("io/data/file2", "rb")
print(f.readinto(b))
print(b)
# readinto() on writable file
Reported by Pylint.
tests/io/file_readinto_len.py
1 issues
Line: 1
Column: 1
b = bytearray(30)
f = open("io/data/file1", "rb")
# 2nd arg (length to read) is extension to CPython
print(f.readinto(b, 8))
print(b)
b = bytearray(4)
f = open("io/data/file1", "rb")
print(f.readinto(b, 8))
Reported by Pylint.
tests/io/file_readline.py
1 issues
Line: 1
Column: 1
f = open("io/data/file1")
print(f.readline())
print(f.readline(3))
print(f.readline(4))
print(f.readline(5))
print(f.readline())
# readline() on writable file
f = open("io/data/file1", "ab")
Reported by Pylint.