Skip to content

NameError in Alias._from_fd  #9

@laanwj

Description

@laanwj

I think a python syntax issue was introduced in b58f938, causing:

Traceback (most recent call last):
  File "./contrib/macdeploy/macdeployqtplus", line 644, in <module>
    other_alias = Alias().from_bytes(other['.']['icvp']['backgroundImageAlias'])
  File "/.../.pyenv/versions/3.6.12/lib/python3.6/site-packages/mac_alias/alias.py", line 377, in from_bytes
    return cls._from_fd(b)
  File "/Users/michael/.pyenv/versions/3.6.12/lib/python3.6/site-packages/mac_alias/alias.py", line 282, in _from_fd
    kind, volname, voldate, fstype, disktype,
NameError: name 'kind' is not defined

https://github.com/al45tair/mac_alias/blob/master/mac_alias/alias.py#L282

Might be solved by re-adding the \ at the end of the lines or surrounding the tuple with paranthesis.

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