1313
1414# Functions and classes
1515class InterfaceChecker (object ):
16- """Class for checking all interface specifications
17- """
16+ """Class for checking all interface specifications"""
1817
1918 def __init__ (
2019 self ,
@@ -23,7 +22,7 @@ def __init__(
2322 module_skip_patterns = None ,
2423 class_skip_patterns = None ,
2524 ):
26- r""" Initialize package for parsing
25+ r"""Initialize package for parsing
2726
2827 Parameters
2928 ----------
@@ -113,14 +112,14 @@ def _uri2path(self, uri):
113112 return path
114113
115114 def _path2uri (self , dirpath ):
116- """ Convert directory path to uri """
115+ """Convert directory path to uri"""
117116 relpath = dirpath .replace (self .root_path , self .package_name )
118117 if relpath .startswith (os .path .sep ):
119118 relpath = relpath [1 :]
120119 return relpath .replace (os .path .sep , "." )
121120
122121 def _parse_module (self , uri ):
123- """ Parse module defined in *uri* """
122+ """Parse module defined in *uri*"""
124123 filename = self ._uri2path (uri )
125124 if filename is None :
126125 # nothing that we could handle here.
@@ -131,7 +130,7 @@ def _parse_module(self, uri):
131130 return functions , classes
132131
133132 def _parse_lines (self , linesource , module ):
134- """ Parse lines of text for functions and classes """
133+ """Parse lines of text for functions and classes"""
135134 functions = []
136135 classes = []
137136 for line in linesource :
@@ -387,7 +386,7 @@ def test_specs(self, uri):
387386 return bad_specs
388387
389388 def _survives_exclude (self , matchstr , match_type ):
390- """ Returns True if *matchstr* does not match patterns
389+ """Returns True if *matchstr* does not match patterns
391390
392391 ``self.package_name`` removed from front of string if present
393392
@@ -429,7 +428,7 @@ def _survives_exclude(self, matchstr, match_type):
429428 return True
430429
431430 def discover_modules (self ):
432- """ Return module sequence discovered from ``self.package_name``
431+ """Return module sequence discovered from ``self.package_name``
433432
434433
435434 Parameters
0 commit comments