Changeset 258 for CCCC


Ignore:
Timestamp:
02/12/14 15:20:45 (6 years ago)
Author:
mjuckes
Message:

Requirement for python version > 2.5 removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/c4.py

    r254 r258  
    624624def dump_drs_list(drs_list, filename): 
    625625    import json 
    626     with open(filename, 'a+') as fh: 
    627           for drs in drs_list: 
     626    fh = open(filename, 'a+') 
     627    for drs in drs_list: 
    628628                fh.write(json.dumps(drs)) 
    629629                fh.write('\n') 
     630    fh.close() 
    630631 
    631632 
Note: See TracChangeset for help on using the changeset viewer.