Skip to content

Commit b06e545

Browse files
authored
Merge pull request #9244 from swagger-api/fix-python-pep
fix python line length E501
2 parents cae64d0 + 3e53307 commit b06e545

File tree

10 files changed

+32
-10
lines changed

10 files changed

+32
-10
lines changed

modules/swagger-codegen/src/main/resources/python/api_client.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class ApiClient(object):
6060
configuration = Configuration()
6161
self.configuration = configuration
6262

63-
self._pool = None # Use the pool property to lazily initialize the ThreadPool.
63+
# Use the pool property to lazily initialize the ThreadPool.
64+
self._pool = None
6465
self.rest_client = rest.RESTClientObject(configuration)
6566
self.default_headers = {}
6667
if header_name is not None:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.2-SNAPSHOT
1+
2.4.3-SNAPSHOT

samples/client/petstore/python-asyncio/petstore_api/api_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6666
configuration = Configuration()
6767
self.configuration = configuration
6868

69-
self._pool = None # Use the pool property to lazily initialize the ThreadPool.
69+
# Use the pool property to lazily initialize the ThreadPool.
70+
self._pool = None
7071
self.rest_client = rest.RESTClientObject(configuration)
7172
self.default_headers = {}
7273
if header_name is not None:

samples/client/petstore/python-asyncio/setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424

25-
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
25+
REQUIRES = [
26+
"certifi>=2017.4.17",
27+
"python-dateutil>=2.1",
28+
"six>=1.10",
29+
"urllib3>=1.23"
30+
]
31+
2632
REQUIRES.append("aiohttp")
2733

2834
setup(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.2-SNAPSHOT
1+
2.4.3-SNAPSHOT

samples/client/petstore/python-tornado/petstore_api/api_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
configuration = Configuration()
6868
self.configuration = configuration
6969

70-
self._pool = None # Use the pool property to lazily initialize the ThreadPool.
70+
# Use the pool property to lazily initialize the ThreadPool.
71+
self._pool = None
7172
self.rest_client = rest.RESTClientObject(configuration)
7273
self.default_headers = {}
7374
if header_name is not None:

samples/client/petstore/python-tornado/setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424

25-
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
25+
REQUIRES = [
26+
"certifi>=2017.4.17",
27+
"python-dateutil>=2.1",
28+
"six>=1.10",
29+
"urllib3>=1.23"
30+
]
31+
2632
REQUIRES.append("tornado")
2733

2834
setup(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.2-SNAPSHOT
1+
2.4.3-SNAPSHOT

samples/client/petstore/python/petstore_api/api_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6666
configuration = Configuration()
6767
self.configuration = configuration
6868

69-
self._pool = None # Use the pool property to lazily initialize the ThreadPool.
69+
# Use the pool property to lazily initialize the ThreadPool.
70+
self._pool = None
7071
self.rest_client = rest.RESTClientObject(configuration)
7172
self.default_headers = {}
7273
if header_name is not None:

samples/client/petstore/python/setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424

25-
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
25+
REQUIRES = [
26+
"certifi>=2017.4.17",
27+
"python-dateutil>=2.1",
28+
"six>=1.10",
29+
"urllib3>=1.23"
30+
]
31+
2632

2733
setup(
2834
name=NAME,

0 commit comments

Comments
 (0)