Fix various indentation issues (tabs->spaces)

This commit is contained in:
luzpaz
2023-01-23 15:43:09 +00:00
committed by Uwe
parent 836835074e
commit 23af228b87
22 changed files with 633 additions and 633 deletions

View File

@@ -37,28 +37,28 @@ def Process(line):
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "hi:o:", ["help", "verbose", "in-file=","out-file="])
except getopt.GetoptError:
# print help information and exit:
sys.stderr.write(Usage)
sys.exit(2)
try:
opts, args = getopt.getopt(sys.argv[1:], "hi:o:", ["help", "verbose", "in-file=","out-file="])
except getopt.GetoptError:
# print help information and exit:
sys.stderr.write(Usage)
sys.exit(2)
# checking on the options
for o, a in opts:
if o in ("-h", "--help"):
sys.stderr.write(Usage)
sys.exit()
if o in ("-o", "--out-file"):
outfile = open(a,'w')
if o in ("-i", "--in-file"):
infile = open(a,'r')
# checking on the options
for o, a in opts:
if o in ("-h", "--help"):
sys.stderr.write(Usage)
sys.exit()
if o in ("-o", "--out-file"):
outfile = open(a,'w')
if o in ("-i", "--in-file"):
infile = open(a,'r')
lines = infile.readlines()
for l in lines:
outfile.write(Process(l))
#print l
lines = infile.readlines()
for l in lines:
outfile.write(Process(l))
#print l
if __name__ == "__main__":
main()
main()