Skip to content

Commit 4c9c058

Browse files
authored
Merge pull request #2153 from jxdv/update-ioerror
remove deprecated IOError
2 parents c1f1a47 + 50f9dd4 commit 4c9c058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubernetes/base/config/kube_config_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def __eq__(self, other):
372372
with open(v) as f1, open(other.__dict__[k]) as f2:
373373
if f1.read() != f2.read():
374374
return
375-
except IOError:
375+
except OSError:
376376
# fall back to only compare filenames in case we are
377377
# testing the passing of filenames to the config
378378
if other.__dict__[k] != v:
@@ -393,7 +393,7 @@ def __repr__(self):
393393
try:
394394
with open(v) as f:
395395
val = "FILE: %s" % str.decode(f.read())
396-
except IOError as e:
396+
except OSError as e:
397397
val = "ERROR: %s" % str(e)
398398
rep += "\t%s: %s\n" % (k, val)
399399
return "Config(%s\n)" % rep

0 commit comments

Comments
 (0)