@@ -144,7 +144,7 @@ def process_item_hook(self, el, full_name, full_link):
144144
145145def get_html_files (root ):
146146 files = []
147- for dir , dirnames , filenames in os .walk (root ):
147+ for dir , _ , filenames in os .walk (root ):
148148 for filename in fnmatch .filter (filenames , '*.html' ):
149149 files .append (os .path .join (dir , filename ))
150150 return files
@@ -206,8 +206,8 @@ def build_abstract(decls, desc, max_code_lines, split_code_lines,
206206 # limit the number of code snippets to be included so that total number
207207 # of lines is less than max_code_lines. The limit becomes active only
208208 # for the second and subsequent snippets.
209- first = True if i == 0 else False
210- last = True if i == len (decls )- 1 else False
209+ first = ( i == 0 )
210+ last = ( i == len (decls )- 1 )
211211
212212 if not first :
213213 if last :
@@ -423,31 +423,31 @@ def process_identifier(out, redirects, root, link, item_ident, item_type,
423423 elif item_type in [ITEM_TYPE_FUNCTION_INLINEMEM ,
424424 ITEM_TYPE_CONSTRUCTOR_INLINEMEM ,
425425 ITEM_TYPE_DESTRUCTOR_INLINEMEM ]:
426- raise DdgException ("INLINEMEM" ) # not implemented
427426 ''' Implementation notes:
428427 * the declarations are possibly versioned
429428 * declaration is selected from the member table
430429 * the member table is found according to the identifier
431430 (last part after :: is enough, hopefully)
432431 '''
432+ raise DdgException ("INLINEMEM" ) # not implemented
433433
434434 elif item_type in [ITEM_TYPE_VARIABLE ,
435435 ITEM_TYPE_VARIABLE_INLINEMEM ,
436436 ITEM_TYPE_ENUM ]:
437- raise DdgException ("ENUM" ) # not implemented
438437 ''' Implementation notes:
439438 * the declarations are possibly versioned
440439 '''
440+ raise DdgException ("ENUM" ) # not implemented
441441
442442 elif item_type == ITEM_TYPE_ENUM_CONST :
443- raise DdgException ("ENUM_CONST" ) # not implemented
444443 ''' Implementation notes:
445444 * the abstract will come from the const -> definition table,
446445 which is always put before the first heading.
447446 * the declaration will come from the dcl template. We need
448447 to split the content at ';' and ',', then search for the
449448 name of the enum. If we find duplicates, signal an error.
450449 '''
450+ raise DdgException ("ENUM_CONST" ) # not implemented
451451
452452 if debug .enabled :
453453 debug .debug_abstracts_file .write ("--------------\n " )
0 commit comments