Skip to content

Commit

Permalink
Clean-up handling of lowercase input.
Browse files Browse the repository at this point in the history
As #22 moved the conversion to upper case into the
conversion function, it is no longer necessary to
convert it in the main function.
  • Loading branch information
icemac committed Oct 2, 2024
1 parent 8afcfcf commit d1db087
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/roman.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def parse_args():
def main():
args = parse_args()
if args.reverse:
u = args.number.upper()
r = fromRoman(u)
r = fromRoman(args.number)
print(r)
else:
i = int(args.number)
Expand Down

0 comments on commit d1db087

Please sign in to comment.