Skip to content

Error when both -c and -n options used #6

@kamichal

Description

@kamichal

I've just got something like that:

 findimports -dnc <the_package_dir>
Traceback (most recent call last):
  File "/usr/local/bin/findimports", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/findimports.py", line 832, in main
    getattr(g, opts.action)()
  File "/usr/local/lib/python2.7/dist-packages/findimports.py", line 703, in printImportedNames
    print("  %s" % "\n  ".join(imp.name for imp in module.imported_names))
AttributeError: 'ModuleCycle' object has no attribute 'imported_names'

Also effect of mixing -n with -d (without -c) is not described in help.
When used in following order: -dn then -d is ignored and with-nd then -d is ignored.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions