Skip to content

Added a fix for a bug where fattr was missing#9

Open
jpts wants to merge 1 commit intobonsaiviking:masterfrom
jpts:fix-fattr
Open

Added a fix for a bug where fattr was missing#9
jpts wants to merge 1 commit intobonsaiviking:masterfrom
jpts:fix-fattr

Conversation

@jpts
Copy link
Copy Markdown

@jpts jpts commented Dec 3, 2019

Fixed a bug where sometimes fattr was missing.

It only makes the call if it is missing, and then caches the request for future use.

Comment thread nfspy/nfspy.py
else:
fh, fattr, cachetime = self.handles[path]
# get fattr if it is missing
if fattr == None:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if fattr == None:
if fattr is None:

See PEP-8 recommendations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants