Skip to content

Commit 68021a8

Browse files
committed
Python 3 preparation: update httplib imports.
Existing roundup.anypy.http_ used in another place. Manual patch.
1 parent bc57c0c commit 68021a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/import_sf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
And you're done!
2222
"""
2323

24-
import sys, os, csv, time, httplib, mimetypes
24+
import sys, os, csv, time, mimetypes
2525

2626
try:
2727
import cElementTree as ElementTree
2828
except ImportError:
2929
from elementtree import ElementTree
3030

3131
from roundup import instance, hyperdb, date, support, password
32-
from roundup.anypy import urllib_
32+
from roundup.anypy import http_, urllib_
3333

3434
today = date.Date('.')
3535

@@ -40,7 +40,7 @@ def get_url(aid):
4040
figure what the URL should be to access that artifact, and hence any
4141
attached files."""
4242
# first we hit this URL...
43-
conn = httplib.HTTPConnection("sourceforge.net")
43+
conn = http_.client.HTTPConnection("sourceforge.net")
4444
conn.request("GET", "/support/tracker.php?aid=%s"%aid)
4545
response = conn.getresponse()
4646
# which should respond with a redirect to the correct url which has the

0 commit comments

Comments
 (0)