[Python-bugs-list] [ python-Bugs-766238 ] platform.py bug fix for Java
SourceForge.net
noreply@sourceforge.net
Fri, 04 Jul 2003 21:14:32 -0700
Bugs item #766238, was opened at 2003-07-05 04:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=766238&group_id=5470
Category: Extension Modules
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: J. Shane (yosher)
Assigned to: Nobody/Anonymous (nobody)
Summary: platform.py bug fix for Java
Initial Comment:
# This module is maintained by Marc-Andre Lemburg
<mal@egenix.com>.
# If you find problems, please submit bug
reports/patches via the
# Python SourceForge Project Page and assign them
to "lemburg".
I believe that
def _java_getprop(self,name,default):
needs to be changed to
def _java_getprop(name,default):
for platform.py to work for the Java Environment.
I was getting the error message:
Traceback (innermost last):
File "platform.py", line 1233, in ?
File "platform.py", line 1167, in platform
File "platform.py", line 954, in uname
File "platform.py", line 614, in java_ver
TypeError: _java_getprop() takes at least 3 arguments
(2 given)
When I deleted "self," from the def, I get
Java-1.4.1_02-Java_HotSpot-TM-_Client_VM,_1.4.1_02-
b06,_Sun_Microsystems_Inc.
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=766238&group_id=5470