UtilitiesPython2/Tools.py

changeset 2763
e4794166ad70
parent 2302
f29e9405c851
child 2998
95581102e03e
child 3163
9f50365a0870
equal deleted inserted replaced
2761:bcc10ef7015d 2763:e4794166ad70
67 return unicode(text, "latin-1"), 'latin-1-guessed' 67 return unicode(text, "latin-1"), 'latin-1-guessed'
68 68
69 69
70 def readEncodedFile(filename): 70 def readEncodedFile(filename):
71 """ 71 """
72 Function to read a file and decode it's contents into proper text. 72 Function to read a file and decode its contents into proper text.
73 73
74 @param filename name of the file to read (string) 74 @param filename name of the file to read (string)
75 @return tuple of decoded text and encoding (string, string) 75 @return tuple of decoded text and encoding (string, string)
76 """ 76 """
77 f = open(filename) 77 f = open(filename)

eric ide

mercurial