Skip to content

Logging warnings when first import #231

@Sheile

Description

@Sheile

Summary

When import parser in addresslib first time, I'm getting same warning that is #196
When import next time, warnings aren't displayed.

IMO, The parser is working correctly.

Reproduce

  1. uninstall flanker
% pip uninstall -y flanker
Uninstalling flanker-0.9.0:
  Successfully uninstalled flanker-0.9.0
  1. install flanker
% pip install flanker
...
Installing collected packages: flanker
  Running setup.py install for flanker ... done
Successfully installed flanker-0.9.0
  1. import and get warnings
% python -c 'from flanker.addresslib import address'
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'url' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'mailbox' is unreachable
Symbol 'url' is unreachable
Symbol 'angle_addr' is unreachable
Symbol 'name_addr' is unreachable
Symbol 'phrase' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'mailbox' is unreachable
Symbol 'addr_spec' is unreachable
Symbol 'angle_addr' is unreachable
Symbol 'name_addr' is unreachable
Symbol 'phrase' is unreachable
Symbol 'local_part' is unreachable
Symbol 'domain' is unreachable
Symbol 'quoted_string' is unreachable
Symbol 'domain_literal' is unreachable
Symbol 'quoted_string_text' is unreachable
Symbol 'domain_literal_text' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
  1. import and DON'T get warnings
% python -c 'from flanker.addresslib import address'

Remarks

Python: 3.7.4
flanker: 0.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions