diff --git a/caratteri.py b/caratteri.py index 43734af..c2aa2b0 100644 --- a/caratteri.py +++ b/caratteri.py @@ -11,13 +11,13 @@ mappa_caratteri = [ ] caratteri_python_a_elea = { - char.decode('utf-8'): idx + char : idx for idx, char in enumerate(mappa_caratteri) } def stringa_python_a_elea(string): s = [] - for i in string.decode('utf-8'): + for i in string: if i in (' ', '\n'): continue @@ -72,8 +72,8 @@ if __name__ == '__main__': try: nomefile = sys.argv[1] except: - print "converte da txt in elea -> file c\n" - print "usaggio: %s nomefile.txt" + print ("converte da txt in elea -> file c\n") + print ("usaggio: %s nomefile.txt") sys.exit() converti(nomefile)