damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 800 forks source link

urllib2.HTTPPasswordMgrWithDefaultRealm() bug #185

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

What device(s) are you experiencing the problem on?
Samsung Galaxy Tab

What firmware version are you running on the device?
2.2

What steps will reproduce the problem?
1. import urllib2
2.     passwordManager = urllib2.HTTPPasswordMgrWithDefaultRealm()
3.      passwordManager.add_password(None, url, username, password)

What is the expected output? What do you see instead?
The expected output is no fail

File urllib2.py line 728
File urllib2.py line 744
File urlparse.py line 147
The result is AttributeError: 'int' object has no attribute 'find'

What version of the product are you using? On what operating system?
SL4A latest version

Please provide any additional information below.

Original issue reported on code.google.com by caragot on 12 Dec 2010 at 5:32

Copied from original issue: damonkohler/android-scripting#486