Skip to content

Command line option -u for pyvimrc fails assert in Python 2.7 #69

Open
@jacob14916

Description

@jacob14916

When I pass a path via the -u option on the command line, the following code raises an AssertError:

    assert isinstance(rc_file, six.text_type)

https://github.com/jonathanslenders/pyvim/blob/master/pyvim/rc_file.py#L30

I believe it fails because it expects a unicode type, while docopt produces a Python 2 string. My workaround is to cast the rc file path to unicode in run_pyvim.py, but I don't know if this will work in Python 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions