Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1f1a47 + 50f9dd4 commit 4c9c058Copy full SHA for 4c9c058
kubernetes/base/config/kube_config_test.py
@@ -372,7 +372,7 @@ def __eq__(self, other):
372
with open(v) as f1, open(other.__dict__[k]) as f2:
373
if f1.read() != f2.read():
374
return
375
- except IOError:
+ except OSError:
376
# fall back to only compare filenames in case we are
377
# testing the passing of filenames to the config
378
if other.__dict__[k] != v:
@@ -393,7 +393,7 @@ def __repr__(self):
393
try:
394
with open(v) as f:
395
val = "FILE: %s" % str.decode(f.read())
396
- except IOError as e:
+ except OSError as e:
397
val = "ERROR: %s" % str(e)
398
rep += "\t%s: %s\n" % (k, val)
399
return "Config(%s\n)" % rep
0 commit comments