Changeset 269


Ignore:
Timestamp:
07/29/08 16:52:49 (6 years ago)
Author:
xi
Message:

Fixed Python 2.3 compatibility (thanks to Julian Scheid for suggestion).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/constructor.py

    r258 r269  
    322322        fraction = 0 
    323323        if values['fraction']: 
    324             fraction = int(values['fraction'][:6].ljust(6, '0')) 
     324            fraction = values['fraction'][:6] 
     325            while len(fraction) < 6: 
     326                fraction += '0' 
     327            fraction = int(fraction) 
    325328        delta = None 
    326329        if values['tz_sign']: 
Note: See TracChangeset for help on using the changeset viewer.