Make the code more like PEP8

This commit is contained in:
oobabooga
2023-04-07 00:00:16 -03:00
parent 8e4e8dd741
commit 7b1b1d8e39
30 changed files with 314 additions and 177 deletions

View File

@@ -2,7 +2,7 @@ import re
from num2words import num2words
#punctuation = r'[\s,.?!/)"\'\]>]“”'
# punctuation = r'[\s,.?!/)"\'\]>]“”'
punctuation = r'[\s,.?!/)"\'\]>]'
alphabet_map = {
"A": " Ei ",
@@ -87,7 +87,7 @@ def replace_roman(string):
start = match.start()
end = match.end()
result = result[0:start+1] + str(roman_to_int(result[start+1:end-1])) + result[end-1:len(result)]
result = result[0:start + 1] + str(roman_to_int(result[start + 1:end - 1])) + result[end - 1:len(result)]
return result