Debian Automated Code Analysis

pyflakes analysis of python3-postgresql_1.0.2-1_i386.deb

./usr/lib/python3/dist-packages/postgresql/copyman.py:102: invalid syntax
	return memoryview(b'')
                      ^
./usr/lib/python3/dist-packages/postgresql/pgpassfile.py:54: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/pgpassfile.py:54: invalid syntax
	with open(path) as f:
          ^
./usr/lib/python3/dist-packages/postgresql/api.py:62: invalid syntax
	def source(self) -> str:
                   ^
./usr/lib/python3/dist-packages/postgresql/cluster.py:123: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/cluster.py:123: invalid syntax
			with open(path) as f:
            ^
./usr/lib/python3/dist-packages/postgresql/exceptions.py:618: invalid syntax
	objs : "A iterable of `Warning`s and `Error`'s",
       ^
./usr/lib/python3/dist-packages/postgresql/message.py:67: invalid syntax
		message : "The primary information of the message",
           ^
./usr/lib/python3/dist-packages/postgresql/configfile.py:86: invalid syntax
	map : "the configuration changes to make",
      ^
./usr/lib/python3/dist-packages/postgresql/unittest.py:70: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/unittest.py:70: invalid syntax
		with c:
        ^
./usr/lib/python3/dist-packages/postgresql/clientparameters.py:157: invalid syntax
def envvars(environ = os.environ, modifier : "environment variable key modifier" = 'PG'.__add__):
                                            ^
./usr/lib/python3/dist-packages/postgresql/temporal.py:34: invalid syntax
		'connector',
              ^
./usr/lib/python3/dist-packages/postgresql/versionstring.py:11: invalid syntax
def split(vstr : str) -> (
                ^
./usr/lib/python3/dist-packages/postgresql/iri.py:34: invalid syntax
		k : fieldproc(v) for k, v in d.items()
                      ^
./usr/lib/python3/dist-packages/postgresql/installation.py:38: invalid syntax
		except OSError as e:
                   ^
./usr/lib/python3/dist-packages/postgresql/notifyman.py:45: invalid syntax
	def __init__(self, *connections, timeout = None):
                                         ^
./usr/lib/python3/dist-packages/postgresql/test/test_python.py:150: invalid syntax
			except socket.error as err:
                         ^
./usr/lib/python3/dist-packages/postgresql/test/test_optimized.py:11: invalid syntax
	packH = struct.Struct("!H").pack,
      ^
./usr/lib/python3/dist-packages/postgresql/test/test_connect.py:41: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/test_connect.py:41: invalid syntax
		with open(self.cluster.hba_file, 'w') as hba:
           ^
./usr/lib/python3/dist-packages/postgresql/test/test_cluster.py:67: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/test_cluster.py:67: invalid syntax
		with c:
        ^
./usr/lib/python3/dist-packages/postgresql/test/test_alock.py:24: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/test_alock.py:24: invalid syntax
				with alock.ExclusiveLock(alt, 1):
              ^
./usr/lib/python3/dist-packages/postgresql/test/perf_copy_io.py:7: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/perf_copy_io.py:7: invalid syntax
	with open('/usr/share/dict/words', mode='brU') as wordfile:
          ^
./usr/lib/python3/dist-packages/postgresql/test/testall.py:9: 'import *' not allowed with 'from .'
from .test_exceptions import *
./usr/lib/python3/dist-packages/postgresql/test/test_lib.py:138: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/test_lib.py:138: invalid syntax
			with open(fn, 'w') as f:
            ^
./usr/lib/python3/dist-packages/postgresql/test/test_types.py:26: invalid syntax
		(True, b'\x01'),
                ^
./usr/lib/python3/dist-packages/postgresql/test/test_driver.py:135: invalid syntax
			b'\x00\x00',
              ^
./usr/lib/python3/dist-packages/postgresql/test/test_notifyman.py:15: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/test_notifyman.py:15: invalid syntax
		with alt:
          ^
./usr/lib/python3/dist-packages/postgresql/test/test_ssl_connect.py:110: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/test/test_ssl_connect.py:110: invalid syntax
		with open(self.cluster.hba_file, 'a') as hba:
           ^
./usr/lib/python3/dist-packages/postgresql/test/test_dbapi20.py:841: invalid syntax
		b = self.driver.Binary(b'Something')
                                     ^
./usr/lib/python3/dist-packages/postgresql/test/test_protocol.py:33: invalid syntax
		b.write(b's')
              ^
./usr/lib/python3/dist-packages/postgresql/test/test_bytea_codec.py:16: invalid syntax
			if c == b'\\' and b == "\\\\":
                ^
./usr/lib/python3/dist-packages/postgresql/test/test_copyman.py:38: invalid syntax
	b'\t'.join((x, x)) + b'\n'
      ^
./usr/lib/python3/dist-packages/postgresql/types/namedtuple.py:13: invalid syntax
def _factory(colnames : [str], namedtuple = namedtuple) -> tuple:
                       ^
./usr/lib/python3/dist-packages/postgresql/types/__init__.py:285: invalid syntax
		elements : "iterable of elements in the array",
            ^
./usr/lib/python3/dist-packages/postgresql/types/bitwise.py:25: invalid syntax
		return typ.from_bits(bits, b''.join(bdata))
                                ^
./usr/lib/python3/dist-packages/postgresql/types/io/lib.py:33: invalid syntax
null_sequence = b'\xff\xff\xff\xff'
                                   ^
./usr/lib/python3/dist-packages/postgresql/types/io/builtins.py:8: invalid syntax
bool_pack = {True:b'\x01', False:b'\x00'}.__getitem__
                         ^
./usr/lib/python3/dist-packages/postgresql/types/io/stdlib_xml_etree.py:61: invalid syntax
			x = b''.join(
          ^
./usr/lib/python3/dist-packages/postgresql/types/io/stdlib_decimal.py:33: invalid syntax
	numeric_digit_length : "number of decimal digits in a numeric digit" = 4,
                       ^
./usr/lib/python3/dist-packages/postgresql/types/io/contrib_hstore.py:23: invalid syntax
		return ulong_pack(len(encoded)) + b''.join(
                                       ^
./usr/lib/python3/dist-packages/postgresql/protocol/version.py:16: invalid syntax
	def __new__(subtype, major_minor : '(major, minor)'):
                                   ^
./usr/lib/python3/dist-packages/postgresql/protocol/xact3.py:42: invalid syntax
class Transaction(object, metaclass = ABCMeta):
                                     ^
./usr/lib/python3/dist-packages/postgresql/protocol/client3.py:15: invalid syntax
	(b'S', 'FATAL'),
      ^
./usr/lib/python3/dist-packages/postgresql/protocol/element3.py:20: invalid syntax
		return b''.join([
            ^
./usr/lib/python3/dist-packages/postgresql/port/signal1_msw.py:52: invalid syntax
def kill(pid : int, signal : int, timeout = 1000, dword1 = wintypes.DWORD(1)):
              ^
./usr/lib/python3/dist-packages/postgresql/string.py:111: local variable 'quoted' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/string.py:117: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/string.py:138: local variable 'end' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/string.py:240: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/alock.py:7: 'abstractmethod' imported but unused
./usr/lib/python3/dist-packages/postgresql/sys.py:49: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/test/test_iri.py:95: redefinition of function 'testPresentPasswordObscure' from line 87
./usr/lib/python3/dist-packages/postgresql/test/test_iri.py:110: local variable 'scheme' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/test/test_string.py:4: 'sys' imported but unused
./usr/lib/python3/dist-packages/postgresql/test/test_string.py:5: 'os' imported but unused
./usr/lib/python3/dist-packages/postgresql/test/perf_query_io.py:7: 'os' imported but unused
./usr/lib/python3/dist-packages/postgresql/test/perf_query_io.py:62: undefined name 'sqlexec'
./usr/lib/python3/dist-packages/postgresql/test/perf_query_io.py:64: undefined name 'prepare'
./usr/lib/python3/dist-packages/postgresql/test/perf_query_io.py:67: undefined name 'prepare'
./usr/lib/python3/dist-packages/postgresql/test/perf_query_io.py:72: undefined name 'sqlexec'
./usr/lib/python3/dist-packages/postgresql/test/test_installation.py:5: 'os' imported but unused
./usr/lib/python3/dist-packages/postgresql/test/test_installation.py:73: undefined name '__package__'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:4: 'os' imported but unused
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:28: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:33: undefined name 'prepare'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:36: undefined name 'prepare'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:74: undefined name 'pg'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:110: undefined name 'execute'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:111: undefined name 'prepare'
./usr/lib/python3/dist-packages/postgresql/test/cursor_integrity.py:112: undefined name 'prepare'
./usr/lib/python3/dist-packages/postgresql/types/io/stdlib_datetime.py:9: 'partial' imported but unused
./usr/lib/python3/dist-packages/postgresql/types/io/stdlib_datetime.py:10: 'methodcaller' imported but unused
./usr/lib/python3/dist-packages/postgresql/types/io/stdlib_datetime.py:10: 'add' imported but unused
./usr/lib/python3/dist-packages/postgresql/types/io/stdlib_uuid.py:4: undefined name 'bytes'
./usr/lib/python3/dist-packages/postgresql/types/io/pg_network.py:2: 'lib' imported but unused
./usr/lib/python3/dist-packages/postgresql/protocol/buffer.py:16: redefinition of unused 'pq_message_stream' from line 14
./usr/lib/python3/dist-packages/postgresql/protocol/buffer.py:16: 'pq_message_stream' imported but unused
./usr/lib/python3/dist-packages/postgresql/protocol/message_types.py:15: undefined name 'bytes'
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:11: 'itemgetter' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:38: 'InternalError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:38: 'ProgrammingError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:38: 'DataError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:38: 'IntegrityError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:38: 'Warning' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:38: 'OperationalError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:50: undefined name 'bytes'
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py./usr/lib/python3/dist-packages/postgresql/driver/pq3.py:51: invalid syntax
	message_types[b'S'[0]] : 'severity',
                   ^
./usr/lib/python3/dist-packages/postgresql/encodings/bytea.py:13: invalid syntax
	for i in range(256)
    ^
./usr/lib/python3/dist-packages/postgresql/release/distutils.py:117: invalid syntax
	prefix : "prefix to prepend to paths" = default_prefix,
         ^
./usr/lib/python3/dist-packages/postgresql/resolved/crypt.py:440: invalid syntax
_cov_2char = b'./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
                                                                                ^
./usr/lib/python3/dist-packages/postgresql/lib/__init__.py:66: invalid syntax
		'first',
          ^
./usr/lib/python3/dist-packages/postgresql/bin/pg_dotconf.py:38: Warning: 'with' will become a reserved keyword in Python 2.6
./usr/lib/python3/dist-packages/postgresql/bin/pg_dotconf.py:38: invalid syntax
		with open(sfp) as sf:
           ^
./usr/lib/python3/dist-packages/postgresql/bin/pg_python.py:76: invalid syntax
			except pg_exc.ClientCannotConnectError as err:
                                            ^
./usr/lib/python3/dist-packages/postgresql/python/command.py:355: invalid syntax
			except SystemExit as se:
                       ^
./usr/lib/python3/dist-packages/postgresql/python/element.py:13: invalid syntax
class Element(object, metaclass = ABCMeta):
                                 ^
./usr/lib/python3/dist-packages/postgresql/python/itertools.py:10: invalid syntax
def interlace(*iters, next = next) -> collections.Iterable:
                          ^
./usr/lib/python3/dist-packages/postgresql/python/structlib.py:7: invalid syntax
null_sequence = b'\xff\xff\xff\xff'
                                   ^
./usr/lib/python3/dist-packages/postgresql/python/socket.py:28: invalid syntax
	def timed_out(self, err) -> bool:
                           ^
:100: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:116: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:187: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:192: undefined name 'next'
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:213: local variable 'style' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'DataError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'InterfaceError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'InternalError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'IntegrityError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'Warning' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'Error' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'ProgrammingError' imported but unused
./usr/lib/python3/dist-packages/postgresql/driver/dbapi20.py:317: 'OperationalError' imported but unused
./usr/lib/python3/dist-packages/postgresql/resolved/riparse.py:354: local variable 'u' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/resolved/riparse.py:355: local variable 'pw' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/resolved/riparse.py:356: local variable 'h' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/resolved/riparse.py:357: local variable 'port' is assigned to but never used
./usr/lib/python3/dist-packages/postgresql/python/functools.py:15: 'rsetattr' imported but unused
./usr/lib/python3/dist-packages/postgresql/python/functools.py:36: redefinition of unused 'process_tuple' from line 34
./usr/lib/python3/dist-packages/postgresql/python/functools.py:65: redefinition of unused 'process_chunk' from line 34
./usr/lib/python3/dist-packages/postgresql/python/os.py:30: 'close_fds' imported but unused
./usr/lib/python3/dist-packages/postgresql/python/contextlib.py:4: 'sys' imported but unused

This report was generated on Sun, 02 Jan 2011 05:31:04 +0000, based on results by pyflakes 0.4.0-1