diff --git a/docs/intro.rst b/docs/intro.rst index 00562c1..064e5ad 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -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 `. diff --git a/src/tablib/packages/dbfpy/fields.py b/src/tablib/packages/dbfpy/fields.py index c763e1e..c46037b 100644 --- a/src/tablib/packages/dbfpy/fields.py +++ b/src/tablib/packages/dbfpy/fields.py @@ -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 +