The built-in basestring abstract type was removed in Python 3 [1]. str must be used for strings and bytes for byte objects. long type was unified with int in Python 3 [2].
Since Python 3 the default encoding of source files is already UTF-8 [1]. Unless instruction says something other than some variation of "utf-8", it has no effect [2].
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2] declares that database modules targeting Python 3 should use Exception as base class instead.
code-health: remove built-in types wrappers
The built-in
basestring
abstract type was removed in Python 3 [1].str
must be used for strings andbytes
for byte objects.long
type was unified withint
in Python 3 [2].Part of #212
code-health: remove utf-8 encoding instruction
Since Python 3 the default encoding of source files is already UTF-8 [1]. Unless instruction says something other than some variation of "utf-8", it has no effect [2].
Part of #212
code-health: remove print compatibility wrapper
future .print_function brings Python 3 print to Python 2 [1].
code-health: remove StandardError
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2] declares that database modules targeting Python 3 should use Exception as base class instead.
Part of #212
code-health: remove collections wrappers
collections.abc was introduced in Python 3.3 [1].
Part of #212
code-health: remove c_ssize_t type wrapper
ctypes.c_ssize_t was introduced in Python 2.7 [1] and Python 3.2 [2].
Part of #212
code-health: remove string encoding compatibility
See PR [1].
Closes #212