def specPy3(specArg): """ Python 3.x support """ systemSay = SystemSay() if len(specArg) > 1: if specArg[1] == '-F': systemSay.say('-F') if specArg[1] == '-S': systemSay.say('-S') if specArg[1] == '-Y': systemSay.yamlSay() else: systemSay.say('simple')
def specPy2(specArg): """ Python 2.x support. Tested with Python 2.6.5 """ # from .printSpecs.cpuSayPy2 import CpuSayPy2 if len(specArg) > 1: if specArg[1] == '-F': SystemSay.say('-F') if specArg[1] == '-S': SystemSay.say('-S') if specArg[1] == '-Y': SystemSay.yamlSay() else: SystemSay.say('simple')