Skip to content

Commit

Permalink
Merge pull request #575 from brussee/fix-573
Browse files Browse the repository at this point in the history
alternative version string to download from sourceforge;
  • Loading branch information
inclement committed Jan 13, 2016
2 parents b2c18e4 + 78522dc commit 8243160
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pythonforandroid/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
unistr = unicode


class ChromeDownloader(FancyURLopener):
version = (
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36')
class WgetDownloader(FancyURLopener):
version = ('Wget/1.17.1')

urlretrieve = ChromeDownloader().retrieve
urlretrieve = WgetDownloader().retrieve


@contextlib.contextmanager
Expand Down

0 comments on commit 8243160

Please sign in to comment.