13
13
14
14
# Functions and classes
15
15
class InterfaceChecker (object ):
16
- """Class for checking all interface specifications
17
- """
16
+ """Class for checking all interface specifications"""
18
17
19
18
def __init__ (
20
19
self ,
@@ -23,7 +22,7 @@ def __init__(
23
22
module_skip_patterns = None ,
24
23
class_skip_patterns = None ,
25
24
):
26
- r""" Initialize package for parsing
25
+ r"""Initialize package for parsing
27
26
28
27
Parameters
29
28
----------
@@ -113,14 +112,14 @@ def _uri2path(self, uri):
113
112
return path
114
113
115
114
def _path2uri (self , dirpath ):
116
- """ Convert directory path to uri """
115
+ """Convert directory path to uri"""
117
116
relpath = dirpath .replace (self .root_path , self .package_name )
118
117
if relpath .startswith (os .path .sep ):
119
118
relpath = relpath [1 :]
120
119
return relpath .replace (os .path .sep , "." )
121
120
122
121
def _parse_module (self , uri ):
123
- """ Parse module defined in *uri* """
122
+ """Parse module defined in *uri*"""
124
123
filename = self ._uri2path (uri )
125
124
if filename is None :
126
125
# nothing that we could handle here.
@@ -131,7 +130,7 @@ def _parse_module(self, uri):
131
130
return functions , classes
132
131
133
132
def _parse_lines (self , linesource , module ):
134
- """ Parse lines of text for functions and classes """
133
+ """Parse lines of text for functions and classes"""
135
134
functions = []
136
135
classes = []
137
136
for line in linesource :
@@ -387,7 +386,7 @@ def test_specs(self, uri):
387
386
return bad_specs
388
387
389
388
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
391
390
392
391
``self.package_name`` removed from front of string if present
393
392
@@ -429,7 +428,7 @@ def _survives_exclude(self, matchstr, match_type):
429
428
return True
430
429
431
430
def discover_modules (self ):
432
- """ Return module sequence discovered from ``self.package_name``
431
+ """Return module sequence discovered from ``self.package_name``
433
432
434
433
435
434
Parameters
0 commit comments