Skip to content

Commit ea5ff4c

Browse files
committed
"Backport" FileNotFoundError to Python 2
1 parent 5f79d27 commit ea5ff4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
except: # Python 3
77
from urllib.parse import urljoin
88
import time
9+
try:
10+
FileNotFoundError # Python 3
11+
except NameError:
12+
FileNotFoundError = IOError # Python 2
913

1014
import requests
1115

0 commit comments

Comments
 (0)