Commit b5cd5f6d authored by Łukasz Nowak's avatar Łukasz Nowak

recipe/readline: Support modern python

parent 95f930f8
...@@ -46,7 +46,7 @@ class Recipe(object): ...@@ -46,7 +46,7 @@ class Recipe(object):
try: try:
with open(storage_path) as f: with open(storage_path) as f:
readline = f.readline() readline = f.readline()
except IOError, e: except IOError as e:
if e.errno != errno.ENOENT: if e.errno != errno.ENOENT:
raise raise
readline = None readline = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment