Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpts
Copy link

@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.

@@ -268,12 +268,13 @@ def _gethandle(self, path):
fattr = self.rootattr
else:
fh, fattr, cachetime = self.handles[path]
# get fattr if it is missing
if fattr == None:
Copy link

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.

None yet

2 participants