Skip to content

Commit 8dac951

Browse files
committed
fixes pep8 E128, E201, E202, E203, E231
1 parent f130a16 commit 8dac951

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code3/twitter2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
while True:
88
print('')
99
acct = input('Enter Twitter Account:')
10-
if ( len(acct) < 1 ) : break
10+
if (len(acct) < 1): break
1111
url = twurl.augment(TWITTER_URL,
12-
{'screen_name': acct, 'count': '5'} )
12+
{'screen_name': acct, 'count': '5'})
1313
print('Retrieving', url)
1414
connection = urllib.request.urlopen(url)
1515
data = connection.read().decode()
@@ -18,7 +18,7 @@
1818
js = json.loads(data)
1919
print(json.dumps(js, indent=4))
2020

21-
for u in js['users'] :
21+
for u in js['users']:
2222
print(u['screen_name'])
2323
s = u['status']['text']
24-
print(' ',s[:50])
24+
print(' ', s[:50])

0 commit comments

Comments
 (0)