Skip to content

Commit e1beb73

Browse files
committed
fix: miscellaneous small Python 3 build-time fixes
1 parent da75fcf commit e1beb73

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: python
22
python:
3+
- "3.8"
34
- "3.6"
4-
- "3.5"
55
- "2.7"
66
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
77
install: pip install -r requirements.txt

docs/api/style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Style-related objects
66

77
A style is used to collect a set of formatting properties under a single name
88
and apply those properties to a content object all at once. This promotes
9-
formatting consistency thoroughout a document and across related documents
9+
formatting consistency throughout a document and across related documents
1010
and allows formatting changes to be made globally by changing the definition
1111
in the appropriate style.
1212

docx/compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def is_string(obj):
3434

3535
def is_string(obj):
3636
"""Return True if *obj* is a string, False otherwise."""
37-
return isinstance(obj, basestring)
37+
return isinstance(obj, basestring) # noqa
3838

39-
Unicode = unicode
39+
Unicode = unicode # noqa

docx/opc/compat.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
Provides Python 2/3 compatibility objects
55
"""
66

7-
from __future__ import (
8-
absolute_import, division, print_function, unicode_literals
9-
)
7+
from __future__ import absolute_import, division, print_function, unicode_literals
108

119
import sys
1210

@@ -29,6 +27,7 @@ def is_string(obj):
2927
"""
3028
return isinstance(obj, str)
3129

30+
3231
# ===========================================================================
3332
# Python 2 versions
3433
# ===========================================================================
@@ -47,4 +46,4 @@ def is_string(obj):
4746
"""
4847
Return True if *obj* is a string, False otherwise.
4948
"""
50-
return isinstance(obj, basestring)
49+
return isinstance(obj, basestring) # noqa

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ python_classes = Test Describe
1212
python_functions = it_ they_ and_it_ but_it_
1313

1414
[tox]
15-
envlist = py26, py27, py34, py35, py36
15+
envlist = py26, py27, py34, py35, py36, py38
1616

1717
[testenv]
1818
deps =

0 commit comments

Comments
 (0)