diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-12-08 14:31:33 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-12-08 14:31:33 +0100 |
commit | 49e14c536022b0f16888b3096e6d5a462518ceeb (patch) | |
tree | df82734cac63cd12fd100f7b9e65caffcebdc02f /builder.py | |
parent | abb7060af15170685188eb4f2f89827c70596bff (diff) | |
download | astroid-git-49e14c536022b0f16888b3096e6d5a462518ceeb.tar.gz |
closes #62295: avoid "OSError: Too many open files"
by moving .file_stream as a Module property opening the file only when needed
Diffstat (limited to 'builder.py')
-rw-r--r-- | builder.py | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -128,7 +128,6 @@ class ASTNGBuilder(InspectBuilder): # build astng representation node = self.string_build(data, modname, path) node.file_encoding = encoding - node.file_stream = stream return node def string_build(self, data, modname='', path=None): |