Skip to content

Commit

Permalink
Update update.py
Browse files Browse the repository at this point in the history
Add compatibility with Python3 by importing the `urllib.request` module if importing `urllib2` fails.
  • Loading branch information
BlackVirusScript authored Jul 30, 2017
1 parent 3fcb2a0 commit 9ce6bc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/core/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

import os
import sys
import urllib2
try:
import urllib2
except ImportError:
import urllib.request as urllib2
import tarfile

from lib.common.utils import checksum
Expand Down

0 comments on commit 9ce6bc1

Please sign in to comment.