bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)

This commit is contained in:
Serhiy Storchaka
2017-04-16 10:46:38 +03:00
committed by GitHub
parent fdbd01151d
commit 55fe1ae970
36 changed files with 1538 additions and 1538 deletions

View File

@@ -579,7 +579,7 @@ if __name__ == '__main__':
if self.stats:
try:
self.stats.add(line)
except IOError as e:
except OSError as e:
print("Failed to load statistics for %s: %s" % (line, e), file=self.stream)
else:
print("No statistics object is loaded.", file=self.stream)