diff options
author | Ludwig Hähne <pankrat@tigris.org> | 2009-05-17 10:22:30 (GMT) |
---|---|---|
committer | Ludwig Hähne <pankrat@tigris.org> | 2009-05-17 10:22:30 (GMT) |
commit | 3234d7f71a124a2656bb0ad300b6969b4f0f4da2 (patch) | |
tree | a20763a234605abfde417736aeeb0a248f753e2a /src/engine/SCons/Node | |
parent | 2d548244bc07ab8faf2c9c1196958007c98ad4bf (diff) | |
download | SCons-3234d7f71a124a2656bb0ad300b6969b4f0f4da2.zip SCons-3234d7f71a124a2656bb0ad300b6969b4f0f4da2.tar.gz SCons-3234d7f71a124a2656bb0ad300b6969b4f0f4da2.tar.bz2 |
Issue 2415: Tolerate unicode strings when using intern()
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r-- | src/engine/SCons/Node/FS.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py index bd8314b..c34cfed 100644 --- a/src/engine/SCons/Node/FS.py +++ b/src/engine/SCons/Node/FS.py @@ -588,22 +588,22 @@ class Base(SCons.Node.Node): # Filenames and paths are probably reused and are intern'ed to # save some memory. - self.name = intern(name) - self.suffix = intern(SCons.Util.splitext(name)[1]) + self.name = SCons.Util.silent_intern(name) + self.suffix = SCons.Util.silent_intern(SCons.Util.splitext(name)[1]) self.fs = fs assert directory, "A directory must be provided" - self.abspath = intern(directory.entry_abspath(name)) - self.labspath = intern(directory.entry_labspath(name)) + self.abspath = SCons.Util.silent_intern(directory.entry_abspath(name)) + self.labspath = SCons.Util.silent_intern(directory.entry_labspath(name)) if directory.path == '.': - self.path = intern(name) + self.path = SCons.Util.silent_intern(name) else: - self.path = intern(directory.entry_path(name)) + self.path = SCons.Util.silent_intern(directory.entry_path(name)) if directory.tpath == '.': - self.tpath = intern(name) + self.tpath = SCons.Util.silent_intern(name) else: - self.tpath = intern(directory.entry_tpath(name)) + self.tpath = SCons.Util.silent_intern(directory.entry_tpath(name)) self.path_elements = directory.path_elements + [self] self.dir = directory |