~ubuntu-branches/debian/sid/meliae/sid

« back to all changes in this revision

Viewing changes to meliae/_loader.pyx

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-07-20 18:26:22 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100720182622-b0ks0nu34mify1lj
Tags: upstream-0.2.1
ImportĀ upstreamĀ versionĀ 0.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
            #       a tuple/dict/etc
580
580
            if val.type_str == 'bool':
581
581
                val = (val.value == 'True')
582
 
            elif val.value is not None:
 
582
            elif val.type_str in ('int', 'long', 'str', 'unicode', 'float',
 
583
                                  ) and val.value is not None:
583
584
                val = val.value
584
585
            elif val.type_str == 'NoneType':
585
586
                val = None