Skip to content

Python 3 support #1

@jayvdb

Description

@jayvdb

I am seeing a few errors

self = <Container(<module 'data' from 'C:\\Projects\\py\\pynaut\\test\\data.py'>) >

    @property
    def children(self):
        _dict = {}
        for name in dir(self.obj):
            try:
                _dict[name] = getattr(self.obj, name)
            except Exception as e:
                logger.warn('Having to return dummy value for attribute "{0}" (error: {1})'.format(name, str(e)))
                _dict[name] = DUMMY_VALUE
>       for attr, value in _dict.iteritems():
E       AttributeError: 'dict' object has no attribute 'iteritems'

.tox\py310\lib\site-packages\pynaut\main.py:102: AttributeError

    def test_convenience_functions():
        """Test the various methods that wrap get_attr_matches.
        """
        obj = Container(data)

>       base_types = [t for t in vars(types).values() if isinstance(t, types.TypeType)]

test\test_all.py:50:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

.0 = <dict_valueiterator object at 0x0000022649F2A6B0>

>   base_types = [t for t in vars(types).values() if isinstance(t, types.TypeType)]
E   AttributeError: module 'types' has no attribute 'TypeType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions