Skip to content

Small parser cleanups #229

Description

@derek73

Bundle of trivial cleanups, one PR:

  • Dead check in _process_initial (parser.py:249): if len(parts) and isinstance(parts, list)str.split(" ") always returns a non-empty list
  • len(list(titles)) / len(list(suffixes)) double-wrap in parse_pieces (parser.py:1210-1213) — the values are already lists; use truthiness
  • full_name property returns self.__str__() (parser.py:743) — call str(self)
  • Aligned-= assignment spacing in __init__ (parser.py:119-123), PEP 8 E221

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions