Skip to content

commit: 5dfded3 "More pep8 fixes" broke 'utils.py' #21

@carsten-forty2

Description

@carsten-forty2

Hello,
I dont't understand completely why, but the function:

def contains_parent_dir(fpath, dirs)

from pygccxml/utils/utils.py

raise the following exception after the mentioned commit.

INFO GCCXML version - 0.9( 1.135 )
Traceback (most recent call last):
File "/home/carsten/src/bert/trunk/python/generate_pybert_code.py", line 297, in
generate(defined_symbols, options.extraIncludes, options.gimliBuild)
File "/home/carsten/src/bert/trunk/python/generate_pybert_code.py", line 181, in generate
, indexing_suite_version = 2)
File "/home/carsten/src/gimli/thirdParty/dist-GNU-4.8.3-64/pyplusplus/module_builder/boost_python_builder.py", line 95, in init
, indexing_suite_version)
File "/home/carsten/src/gimli/thirdParty/dist-GNU-4.8.3-64/pyplusplus/module_builder/boost_python_builder.py", line 153, in __parse_declarations
self.__apply_decls_defaults(decls)
File "/home/carsten/src/gimli/thirdParty/dist-GNU-4.8.3-64/pyplusplus/module_builder/boost_python_builder.py", line 177, in __apply_decls_defaults
self.__filter_by_location( flatten_decls )
File "/home/carsten/src/gimli/thirdParty/dist-GNU-4.8.3-64/pyplusplus/module_builder/boost_python_builder.py", line 163, in __filter_by_location
if pygccxml_utils.contains_parent_dir( fpath, self.__parsed_dirs ):
File "/home/carsten/src/gimli/thirdParty/dist-GNU-4.8.3-64/pygccxml/utils/utils.py", line 118, in contains_parent_dir
return bool(list(filter(fpath.startswith(dirs), dirs)))
TypeError: startswith first arg must be str, unicode, or tuple, not list

With the old version everything works perfectly.

There seems to be some more problems folllowing up and broke my toolchain with the current branch .. i will investigate and send it.

Bests and thanks for maintaining this great software,
Carsten

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions