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 6c3e27c commit a30d29eCopy full SHA for a30d29e
src/fwfetcher.py
@@ -2,7 +2,6 @@
2
3
from __future__ import absolute_import, division, print_function
4
5
-from urllib2 import Request, urlopen, URLError
6
import hashlib
7
import os
8
import StringIO
@@ -11,6 +10,13 @@
11
10
import time
12
import zipfile
13
+try:
14
+ # Python 3
15
+ from urllib.request import Request, URLError, urlopen
16
+except ImportError:
17
+ # Python 2
18
+ from urllib2 import Request, URLError, urlopen
19
+
20
# fwfetcher.py - a program to extract the Kinect audio firmware from an Xbox360
21
# system update. This program includes substantial portions of extract360.py,
22
# which is copyright Rene Ladan and others as noted below and provided under
0 commit comments