Skip to content

Commit 5791e15

Browse files
committed
flake8 spacing changes, split multiple imports
1 parent 0f0e131 commit 5791e15

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

roundup/anypy/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def eval_import(s):
149149
# ('issue', 5002L, "status") rather than as a string.
150150
# This was a bug that existed and was fixed before or with v1.2.0
151151
import re
152-
v = eval(re.sub(r', ([0-9]+)L,',r', \1,', s))
152+
v = eval(re.sub(r', ([0-9]+)L,', r', \1,', s))
153153

154154
if isinstance(v, str):
155155
return v.encode('iso-8859-1').decode('utf-8')

roundup/install_util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17-
#
17+
#
1818

1919
"""Support module to generate and check fingerprints of installed files.
2020
"""
2121
__docformat__ = 'restructuredtext'
2222

23-
import os, shutil
23+
import os
24+
import shutil
2425
from hashlib import sha1
2526

2627
from roundup.anypy.strings import s2b

roundup/mailgw.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,10 +1465,10 @@ def renew_oauth_tokens(self):
14651465
with open(os.path.join(self.oauth_path, 'client_id'), 'r') as f:
14661466
client_id = f.read().strip()
14671467
data = dict(
1468-
client_id = client_id,
1469-
client_secret = client_secret,
1470-
refresh_token = self.refresh_token,
1471-
grant_type = 'refresh_token'
1468+
client_id=client_id,
1469+
client_secret=client_secret,
1470+
refresh_token=self.refresh_token,
1471+
grant_type='refresh_token'
14721472
)
14731473
session = requests.session()
14741474
r = session.post(self.token_endpoint, data=data)

0 commit comments

Comments
 (0)