Drop support fo Python 2.7

This commit is contained in:
Hugo
2019-10-19 18:52:39 +03:00
parent 825de0193b
commit c9027b446c
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ THE SOFTWARE.
Pythons Supported
-----------------
Python 3.5+ are officially supported.
Python 3.5+ is officially supported.
Now, go :ref:`install Tablib <install>`.
+1 -5
View File
@@ -134,11 +134,7 @@ class DbfFieldDef:
definition of this field.
"""
if sys.version_info < (2, 4):
# earlier versions did not support padding character
_name = self.name[:11] + "\0" * (11 - len(self.name))
else:
_name = self.name.ljust(11, '\0')
_name = self.name.ljust(11, '\0')
return (
_name +
self.typeCode +