Remove white space between print ()

There is a white space in line [print (*,
then we remove it.

Change-Id: I4d490902fcc38c0b7d05cd4ddd2359cd5ab9a09e
This commit is contained in:
Cao Xuan Hoang 2016-11-18 13:16:42 +07:00
parent ca1705c53b
commit 3501a34ebc
1 changed files with 4 additions and 4 deletions

View File

@ -14,14 +14,14 @@ def main(argv):
try: try:
opts, args = getopt.getopt(argv, "hi:", "ifile=") opts, args = getopt.getopt(argv, "hi:", "ifile=")
if not opts: if not opts:
print ('No options supplied. For help use -h') print('No options supplied. For help use -h')
sys.exit(2) sys.exit(2)
except getopt.GetoptError: except getopt.GetoptError:
print ('parser.py -i <inputfile>') print('parser.py -i <inputfile>')
sys.exit(2) sys.exit(2)
for opt, arg in opts: for opt, arg in opts:
if opt == '-h': if opt == '-h':
print ('parser.py -i <inputfile>') print('parser.py -i <inputfile>')
sys.exit() sys.exit()
elif opt in ("-i", "--ifile"): elif opt in ("-i", "--ifile"):
inputfile = arg inputfile = arg
@ -56,7 +56,7 @@ def create_config(dict):
if __name__ == "__main__": if __name__ == "__main__":
inputfile = main(sys.argv[1:]) inputfile = main(sys.argv[1:])
if not os.access(inputfile, os.R_OK): if not os.access(inputfile, os.R_OK):
print ("Cannot read the file: {0}. It may or not may exist".format( print("Cannot read the file: {0}. It may or not may exist".format(
inputfile)) inputfile))
sys.exit(2) sys.exit(2)
dict = read_values(inputfile) dict = read_values(inputfile)