Utilities/__init__.py

changeset 28
dde24fc7f7ba
parent 15
f6ccc31d6e72
child 37
bfe92e414977
equal deleted inserted replaced
27:1018a0347ae9 28:dde24fc7f7ba
885 """ 885 """
886 import builtins 886 import builtins
887 if not codestring: 887 if not codestring:
888 try: 888 try:
889 f = open(file) 889 f = open(file)
890 codestring, encoding = decode(f.read()) 890 ## codestring, encoding = decode(f.read())
891 codestring = f.read()
891 f.close() 892 f.close()
892 except IOError: 893 except IOError:
893 return (False, None, None, None, None) 894 return (False, None, None, None, None)
894 895
895 ## if isinstance(codestring, type("")): 896 ## if isinstance(codestring, type("")):

eric ide

mercurial