blob: 386a4ebcf3ab8b5483d33edcb6ac7a212651cc09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Check for python2 support first, then python3. This should help avoid importing
the wrong module for python2 where the builtins module can be provided by the
futures package.
--- twine-1.11.0/tests/test_utils.py
+++ twine-1.11.0/tests/test_utils.py
@@ -19,9 +19,9 @@
import textwrap
try:
- import builtins
-except ImportError:
import __builtin__ as builtins
+except ImportError:
+ import builtins
import pytest
|