From 31f843814cf17ef0fbcef7847837da73f7f9baf9 Mon Sep 17 00:00:00 2001 From: yenatch Date: Wed, 24 Sep 2014 12:54:44 -0700 Subject: Add docstrings for IncludeReader methods. --- pokemontools/scan_includes.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pokemontools/scan_includes.py') 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 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 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): -- cgit v1.2.3