mambo/core.py
def configure_license():
        '''extract and convert the license from dos to unix'''
        try:
            licensezip = zipfile.ZipFile(var.LICENSE_FILE_ZIP, 'r')
            licensezip.extractall(var.DOWNLOAD_DIR)
            licensezip.close()
            licensetext = open(var.LICENSE, 'rb').read().replace('\r\n', '\n')
            open(var.LICENSE, 'wb').write(licensetext)
        except (OSError, IOError):
            print "\n   ERROR: could not configure the license."
            sys.exit(1)
extract and convert the license from dos to unix
extract and convert the license from dos to unix
extract and convert the license from dos to unix
def configure_license():
        try:
            licensezip = zipfile.ZipFile(var.LICENSE_FILE_ZIP, 'r')
            licensezip.extractall(var.DOWNLOAD_DIR)
            licensezip.close()
            licensetext = open(var.LICENSE, 'rb').read().replace('\r\n', '\n')
            open(var.LICENSE, 'wb').write(licensetext)
        except (OSError, IOError):
            print "\n   ERROR: could not configure the license."
            sys.exit(1)
def configure_license ( ) : try : licensezip = zipfile . ZipFile ( var . LICENSE_FILE_ZIP , 'r' ) licensezip . extractall ( var . DOWNLOAD_DIR ) licensezip . close ( ) licensetext = open ( var . LICENSE , 'rb' ) . read ( ) . replace ( '\r\n' , '\n' ) open ( var . LICENSE , 'wb' ) . write ( licensetext ) except ( OSError , IOError ) : print "\n   ERROR: could not configure the license." sys . exit ( 1 )
extract and convert the license from dos to unix
extract and convert the license from dos to unix
'''extract and convert the license from dos to unix'''