+ elif la in (1, 2):
+ if (arguments[0] == '-'):
+ infile = sys.stdin
+ else:
+ infile = open(arguments[0], 'r')
+ if la == 1:
+ outfile = sys.stdout
+ elif la == 2:
+ if (arguments[1] == '-'):
+ outfile = sys.stdout
+ else:
+ outfile = open(arguments[1], 'w')