Bug#307313: jython: urllib.urlopen fails with error in usage of httplib

2005-05-02 Thread Ben Burton
Hi, > I tried this script in jython which failed: ... > (and it works in Python itself...) I suspect that's because jython is an implementation of python 2.1, and debian is using python 2.3. I tried running your script under python2.1, and it fails also: [EMAIL PROTECTED]:~> python foo.py

Bug#307313: jython: urllib.urlopen fails with error in usage of httplib

2005-05-02 Thread Egon Willighagen
Package: jython Version: 2.1.0-20 Severity: normal I tried this script in jython which failed: import urllib file = open("test.txt") line = file.readline() while (len(line) > 1) : cas = line.strip() code = cas.replace("-", "") url = "http://webbook.nist.gov/cgi/cbook.cgi