Skip to content

Commit db5bf16

Browse files
authored
Merge pull request #678 from screamerbg/development
Fix future python module dependency
2 parents a182064 + 373b555 commit db5bf16

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
- run: python --version
1111
- run: pip --version
12-
- run: pip install pytest future
12+
- run: pip install pytest
1313
- run: git config --global user.email "[email protected]"
1414
- run: git config --global user.name "mbed Test"
1515
- run: echo -e "[ui]\nusername = mbed Test <[email protected]>\n" > ~/.hgrc
@@ -100,7 +100,7 @@ jobs:
100100

101101
- run: python --version
102102
- run: pip --version
103-
- run: pip install pytest future
103+
- run: pip install pytest
104104
- run: git config --global user.email "[email protected]"
105105
- run: git config --global user.name "mbed Test"
106106
- run: echo -e "[ui]\nusername = mbed Test <[email protected]>\n" > ~/.hgrc

mbed/mbed.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@
1919
# pylint: disable=invalid-name, missing-docstring, bad-continuation
2020

2121
from __future__ import print_function
22-
from future.builtins.iterators import zip
23-
from past.builtins import basestring
2422

2523
try:
26-
from urllib.parse import urlparse, quote
27-
from urllib.request import urlopen
28-
except ImportError:
29-
from urlparse import urlparse
30-
from urllib2 import urlopen
31-
from urllib import quote
24+
# Python 2
25+
basestring = (unicode, str)
26+
from urlparse import urlparse
27+
from urllib2 import urlopen
28+
from urllib import quote
29+
except NameError:
30+
# Python 3
31+
basestring = str
32+
from urllib.parse import urlparse, quote
33+
from urllib.request import urlopen
3234

3335
import traceback
3436
import sys
@@ -47,7 +49,7 @@
4749

4850

4951
# Application version
50-
ver = '1.7.0'
52+
ver = '1.7.1'
5153

5254
# Default paths to Mercurial and Git
5355
hg_cmd = 'hg'

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
setup(
2020
name="mbed-cli",
21-
version="1.7.0",
21+
version="1.7.1",
2222
description="Arm Mbed command line tool for repositories version control, publishing and updating code from remotely hosted repositories (GitHub, GitLab and mbed.com), and invoking Mbed OS own build system and export functions, among other operations",
2323
long_description=LONG_DESC,
2424
url='http://github.com/ARMmbed/mbed-cli',

0 commit comments

Comments
 (0)