]> granicus.if.org Git - python/commit
Fix [ #465502 ] urllib2: urlopen unicode problem
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 9 Oct 2001 16:18:45 +0000 (16:18 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 9 Oct 2001 16:18:45 +0000 (16:18 +0000)
commit8b78b99647f2bfa7b757f060bdcb2a4e0c6f7105
treea57fe2f37fa7feb9980f803e173acf7ac50a921f
parent2f6a0b00a0772424dd49b782df18e36000c082ed
Fix [ #465502 ] urllib2: urlopen unicode problem

When checking for strings use,
!         if isinstance(uri, (types.StringType, types.UnicodeType)):

Also get rid of some dodgy code that tried to guess whether attributes
were callable or not.
Lib/urllib2.py