Skip to content

Commit

Permalink
py3k: Import urlopen, etc., from new locations.
Browse files Browse the repository at this point in the history
Signed-off-by: Elliott Sales de Andrade <[email protected]>
  • Loading branch information
QuLogic committed Nov 16, 2015
1 parent 6c3e27c commit a30d29e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/fwfetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import absolute_import, division, print_function

from urllib2 import Request, urlopen, URLError
import hashlib
import os
import StringIO
Expand All @@ -11,6 +10,13 @@
import time
import zipfile

try:
# Python 3
from urllib.request import Request, URLError, urlopen
except ImportError:
# Python 2
from urllib2 import Request, URLError, urlopen

# fwfetcher.py - a program to extract the Kinect audio firmware from an Xbox360
# system update. This program includes substantial portions of extract360.py,
# which is copyright Rene Ladan and others as noted below and provided under
Expand Down

0 comments on commit a30d29e

Please sign in to comment.