diff options
author | yenatch <yenatch@gmail.com> | 2014-09-24 12:54:44 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-09-24 12:54:44 -0700 |
commit | 31f843814cf17ef0fbcef7847837da73f7f9baf9 (patch) | |
tree | 036ce5b3aacefdcc02d9f39671e5e586a4084562 /pokemontools/scan_includes.py | |
parent | c9e7f22f8f9119ca08209fda4ee173abcb8e65e6 (diff) |
Add docstrings for IncludeReader methods.
Diffstat (limited to 'pokemontools/scan_includes.py')
-rw-r--r-- | pokemontools/scan_includes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pokemontools/scan_includes.py b/pokemontools/scan_includes.py index 297e034..e8255ac 100644 --- a/pokemontools/scan_includes.py +++ b/pokemontools/scan_includes.py @@ -28,6 +28,9 @@ class IncludeReader: self.__dict__.update(kwargs) def read(self, filename=None): + """ + Recursively look for includes in <filename> and add them to self.includes. + """ if filename is None: if hasattr(self, 'filename'): filename = os.path.join(self.path, self.filename) @@ -38,6 +41,9 @@ class IncludeReader: self.read_line(line) def read_line(self, line): + """ + Add any includes in <line> to self.includes, and look for includes in those. + """ parts = line[:line.find(';')].split() for directive in self.directives: if directive in map(str.upper, parts): |