Skip to content

blurb should error out if run with a Python interpreter which is too old #173

Closed
@rodrigc

Description

@rodrigc

The blurb command relies on Python 3.5+ in order to run.
If run with an older Python interpreter, weird errors happen such as:

   File "/usr/bin/blurb", line 123
     def textwrap_body(body, *, subsequent_indent=''):
                              ^
SyntaxError: invalid syntax

For newcomers to Python, this is hard to figure out.

blurb should error out if the Python version is too old.
I recommend that the code check the value of sys.version_info and
error out with a message indicating that the Python version is too old.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions