[Distutils] [issue88] urllib2.splituser

Jürgen Hermann setuptools at bugs.python.org
Wed Oct 28 14:37:15 CET 2009


New submission from Jürgen Hermann <Juergen.Hermann at 1und1.de>:

setuptools/package_index.py throws an AttributeError in Python 2.3 due to

auth, host = urllib2.splituser(netloc)

It either needs the following monkey patch, or simply use splituser from urllib.

import urllib
import urllib2
if not hasattr(urllib2, 'splituser'):
    # setuptools wants to import this from urllib2 but it's not
    # in there in Python 2.3.3, so we just alias it.
    urllib2.splituser = urllib.splituser

----------
messages: 441
nosy: jhe
priority: bug
status: unread
title: urllib2.splituser

_______________________________________________
Setuptools tracker <setuptools at bugs.python.org>
<http://bugs.python.org/setuptools/issue88>
_______________________________________________


More information about the Distutils-SIG mailing list