| OLD | NEW |
| 1 """scons.Node.FS | 1 """scons.Node.FS |
| 2 | 2 |
| 3 File system nodes. | 3 File system nodes. |
| 4 | 4 |
| 5 These Nodes represent the canonical external objects that people think | 5 These Nodes represent the canonical external objects that people think |
| 6 of when they think of building software: files and directories. | 6 of when they think of building software: files and directories. |
| 7 | 7 |
| 8 This holds a "default_fs" variable that should be initialized with an FS | 8 This holds a "default_fs" variable that should be initialized with an FS |
| 9 that can be used by scripts or modules looking for the canonical default. | 9 that can be used by scripts or modules looking for the canonical default. |
| 10 | 10 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 self.duplicate = directory.duplicate | 547 self.duplicate = directory.duplicate |
| 548 | 548 |
| 549 def str_for_display(self): | 549 def str_for_display(self): |
| 550 return '"' + self.__str__() + '"' | 550 return '"' + self.__str__() + '"' |
| 551 | 551 |
| 552 def must_be_same(self, klass): | 552 def must_be_same(self, klass): |
| 553 """ | 553 """ |
| 554 This node, which already existed, is being looked up as the | 554 This node, which already existed, is being looked up as the |
| 555 specified klass. Raise an exception if it isn't. | 555 specified klass. Raise an exception if it isn't. |
| 556 """ | 556 """ |
| 557 if self.__class__ is klass or klass is Entry: | 557 if isinstance(self, klass) or klass is Entry: |
| 558 return | 558 return |
| 559 raise TypeError, "Tried to lookup %s '%s' as a %s." %\ | 559 raise TypeError, "Tried to lookup %s '%s' as a %s." %\ |
| 560 (self.__class__.__name__, self.path, klass.__name__) | 560 (self.__class__.__name__, self.path, klass.__name__) |
| 561 | 561 |
| 562 def get_dir(self): | 562 def get_dir(self): |
| 563 return self.dir | 563 return self.dir |
| 564 | 564 |
| 565 def get_suffix(self): | 565 def get_suffix(self): |
| 566 return self.suffix | 566 return self.suffix |
| 567 | 567 |
| (...skipping 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3065 try: | 3065 try: |
| 3066 entry.clear_memoized_values() | 3066 entry.clear_memoized_values() |
| 3067 except AttributeError: | 3067 except AttributeError: |
| 3068 # Not a Node object, try to look up Node by filename. XXX | 3068 # Not a Node object, try to look up Node by filename. XXX |
| 3069 # This creates Node objects even for those filenames which | 3069 # This creates Node objects even for those filenames which |
| 3070 # do not correspond to an existing Node object. | 3070 # do not correspond to an existing Node object. |
| 3071 node = get_default_fs().Entry(entry) | 3071 node = get_default_fs().Entry(entry) |
| 3072 if node: | 3072 if node: |
| 3073 node.clear_memoized_values() | 3073 node.clear_memoized_values() |
| 3074 | 3074 |
| OLD | NEW |