summaryrefslogtreecommitdiff
path: root/node_classes.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-22 15:56:26 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-22 15:56:26 +0100
commitfb09403ab49b207da3aa9a9b3f738af0085c031e (patch)
treef21ec6acfc8dd1e765650495145aca1c4a7690d1 /node_classes.py
parentb8f49d042a6c3a5cda196dc76e04fd9f479957fd (diff)
downloadastroid-git-fb09403ab49b207da3aa9a9b3f738af0085c031e.tar.gz
py3k: handle file encoding and stream definition in builder
In Py3k, We can't do "data = open(path, 'U').read()" anymore since we need to know the encoding to read the file (UnicodeError); instead we have to first guess the encoding by reading the file as a byte stream. We then define + node.file_encoding = encoding + node.file_stream = file_stream to be used by the Pylint checkers
Diffstat (limited to 'node_classes.py')
0 files changed, 0 insertions, 0 deletions