summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-10 15:00:24 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-10 15:00:24 +0100
commit496e40ed0f16e9f90937dc49c82aa1f37652c1ba (patch)
tree0d4d7a08e59e14a80f4fd8de0bac1f19e7620425 /builder.py
parente4a4989bd7613105be3c79b6c95ee59546ed530f (diff)
downloadastroid-git-496e40ed0f16e9f90937dc49c82aa1f37652c1ba.tar.gz
cleanup: norm_read can be done directly
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/builder.py b/builder.py
index 9c3fcddc..9efb4e56 100644
--- a/builder.py
+++ b/builder.py
@@ -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)