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.
1 parent b106576 commit a868628Copy full SHA for a868628
Lib/urllib/robotparser.py
@@ -65,6 +65,7 @@ def read(self):
65
self.disallow_all = True
66
elif err.code >= 400 and err.code < 500:
67
self.allow_all = True
68
+ err.close()
69
else:
70
raw = f.read()
71
self.parse(raw.decode("utf-8").splitlines())
0 commit comments