I can confirm this bug.
I've created a class:
public class Foo
{
public static void main (String[] args)
{
try
{
PythonInterpreter.initialize(System.getProperties(), System.getProperties(), new String[0]);
PythonInterpreter interp = new PythonInterpreter();
interp.execfile("foo.py");//
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
My "foo.py" file is calling "oauth2" (that is using HTTPS, of course), and this is the result:
File "foo.py", line 308, in <module>
main(sys.argv)
File "foo.py", line 299, in main
response = AuthorizeTokens("mykey", "mytoken",
File "foo.py", line 208, in AuthorizeTokens
response = urllib.urlopen(request_url, urllib.urlencode(params)).read()
File "C:\jython2.7a2\jython.jar\Lib\urllib.py", line 88, in urlopen
File "C:\jython2.7a2\jython.jar\Lib\urllib.py", line 204, in open
File "C:\jython2.7a2\jython.jar\Lib\urllib.py", line 216, in open_unknown
IOError: [Errno url error] unknown url type: 'https'
|