Changeset 4314:aa2469a568c5 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/03/11 17:30:20 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix javaexpr() for color and date.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/misc.py

    r4312 r4314  
    522522        return u'"{}"'.format(u"".join(v)) 
    523523    elif isinstance(obj, (datetime.date, datetime.datetime)): 
    524         return "com.livinglogic.ul4.Utils.isoDateFormatter.parse({});".format(javaexpr(obj.isoformat())) 
     524        return "com.livinglogic.ul4.Utils.isoDateFormatter.parse({})".format(javaexpr(obj.isoformat())) 
    525525    elif isinstance(obj, color.Color): 
    526         return "new com.livinglogic.ul4.Color({}, {}, {}, {});".format(*obj) 
     526        return "new com.livinglogic.ul4.Color({}, {}, {}, {})".format(*obj) 
    527527    elif isinstance(obj, (int, float)): 
    528528        return repr(obj)