Issue1616493
Created on 2006-12-15.15:39:36 by leouserz, last changed 2007-01-31.06:22:31 by cgroves.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2006-12-15 15:39:36 | leouserz | create | |
Created on 2006-12-15.15:39:36 by leouserz, last changed 2007-01-31.06:22:31 by cgroves.
| Messages | |||
|---|---|---|---|
| msg1372 (view) | Author: Deleted User leouserz (leouserz) | Date: 2006-12-15.15:39:36 | |
in testing an application I found that the javapath module is not excepting unicode objects. This means that this type of code:
a = unicode("/home/myhome")
import os
os.path.abspath(a)
is throwing an exception because of this code in javapath:
def _tostr(s, method):
if isinstance(s, "".__class__):
return s
import org
raise TypeError, "%s() argument must be a string object, not %s" % (
method, org.python.core.Py.safeRepr(s))
the os.path.abspath call works on python. Note, it is just not the abspath call that bombs. Any method that interoperates with _tostr and uses a unicode will fail as well.
|
|||
| msg1373 (view) | Author: Deleted User leouserz (leouserz) | Date: 2006-12-20.19:15:49 | |
this is the same bug I reported for: [ 1252162 ] os.path.abspath does not accept unicode objects http://sourceforge.net/tracker/index.php?func=detail&aid=1252162&group_id=12867&atid=112867 which I completely forgot about. :( I think one can be closed. leouser |
|||
| msg1374 (view) | Author: Charlie Groves (cgroves) | Date: 2007-01-31.06:22:31 | |
Fixed in r3070. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2006-12-15 15:39:36 | leouserz | create | |
Supported by Python Software Foundation,
Powered by Roundup