Skip to content

Commit

Permalink
Fix #6 on Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
calzoneman committed Mar 16, 2015
1 parent aba96e8 commit 9434e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_weather(woeid, unit, format, timeout=None):
_get_weather = partial(get_weather, args.woeid, args.unit, args.format, timeout=args.timeout)

if args.wrap_i3_status:
stdin = iter(sys.stdin)
stdin = iter(sys.stdin.readline, '')

# The first two lines from i3status need to pass through unmodified
print(next(stdin), end='')
Expand Down

0 comments on commit 9434e9b

Please sign in to comment.