/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/config.py

  • Committer: Tim Marston
  • Date: 2016-02-13 13:23:51 UTC
  • Revision ID: tim@ed.am-20160213132351-8ly2s0rtol5w1kpc
fixed syntax error and remove debug print

Show diffs side-by-side

added added

removed removed

73
73
                                        if( matches ):
74
74
                                                value = matches.group( 1 )
75
75
                                config[ "%s.%s" % ( section, name ) ] = value
76
 
                                print "  %s.%s = %s" % ( section, name, value )
 
76
                                #print "  %s.%s = %s" % ( section, name, value )
77
77
 
78
78
                # use config
79
79
                if 'stdhome.home-dir' in config:
86
86
 
87
87
        def to_bool( self, value ):
88
88
                value = value.lower()
89
 
                return value == 't' || value == 'true' || value == 'yes' || \
90
 
                        ( re.match( '[0-9]+$', value ) && int( value ) != 0 )
 
89
                return value == 't' or value == 'true' or value == 'yes' or \
 
90
                        ( re.match( '[0-9]+$', value ) and int( value ) != 0 )