diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 15:00:24 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 15:00:24 +0100 |
commit | 496e40ed0f16e9f90937dc49c82aa1f37652c1ba (patch) | |
tree | 0d4d7a08e59e14a80f4fd8de0bac1f19e7620425 /builder.py | |
parent | e4a4989bd7613105be3c79b6c95ee59546ed530f (diff) | |
download | astroid-git-496e40ed0f16e9f90937dc49c82aa1f37652c1ba.tar.gz |
cleanup: norm_read can be done directly
Diffstat (limited to 'builder.py')
-rw-r--r-- | builder.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -33,7 +33,6 @@ from inspect import isfunction, ismethod, ismethoddescriptor, isclass, \ isbuiltin from inspect import isdatadescriptor -from logilab.common.fileutils import norm_read from logilab.common.modutils import modpath_from_file from logilab.astng._exceptions import ASTNGBuildingException @@ -106,7 +105,7 @@ class ASTNGBuilder: path is expected to be a python source file """ try: - data = norm_read(path) + data = open(path, 'U').read() except IOError, ex: msg = 'Unable to load file %r (%s)' % (path, ex) raise ASTNGBuildingException(msg) |