src/eric7/DataViews/CodeMetrics.py

branch
eric7
changeset 10050
3750abc45d5e
parent 9653
e67609152c5e
child 10060
b946699e9e79
equal deleted inserted replaced
10049:61a1757626ac 10050:3750abc45d5e
209 @param total dictionary receiving the overall code statistics 209 @param total dictionary receiving the overall code statistics
210 @return a statistics object with the collected code statistics (SourceStat) 210 @return a statistics object with the collected code statistics (SourceStat)
211 """ 211 """
212 try: 212 try:
213 text = Utilities.readEncodedFile(filename)[0] 213 text = Utilities.readEncodedFile(filename)[0]
214 except (UnicodeError, OSError): 214 except (OSError, UnicodeError):
215 return SourceStat() 215 return SourceStat()
216 216
217 parser = Parser() 217 parser = Parser()
218 parser.parse(text) 218 parser.parse(text)
219 219

eric ide

mercurial