Changeset 706


Ignore:
Timestamp:
01/08/16 17:02:24 (3 years ago)
Author:
mjuckes
Message:

Updated setup for tag 01.beta.32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/dreqPy/dreq.py

    r703 r706  
    1616if sys.version_info[0] == 3: 
    1717  python2 = False 
     18elif sys.version_info[0] == 2: 
     19  pythonPre27 = sys.version_info[1] < 7 
    1820 
    1921jsh='''<link type="text/css" href="/css/jquery-ui-1.8.16.custom.css" rel="Stylesheet" /> 
     
    540542      import xml.etree.cElementTree as cel 
    541543       
    542       cel.register_namespace('', "urn:w3id.org:cmip6.dreq.dreq:a") 
    543       cel.register_namespace('pav', "http://purl.org/pav/2.3") 
     544      if not pythonPre27: 
     545        ## this for of namespace registration not available in 2.6 
     546        ## absence of registration means module cannot write data exactly as read. 
     547        ## 
     548        cel.register_namespace('', "urn:w3id.org:cmip6.dreq.dreq:a") 
     549        cel.register_namespace('pav', "http://purl.org/pav/2.3") 
    544550 
    545551      if not self.strings: 
Note: See TracChangeset for help on using the changeset viewer.