-
-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Anonymous and the parent does not have sytle_rel
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29fe8ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be
self.style_rel = style_rel or StyleRelationship()
Depending on if this is python version specific and or project style specific, but the above notation is a few microseconds faster.
Also line 669 you added self to style_rel.set_computed_style, should that not be added to line 753 as well?
EDIT:
Okay, maybe not required to add self. Is there a chance that style_rel can be None there as well?
Sorry, not digging into the code much, just loving these updates as it is making a big difference to my reports.
29fe8ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed it is. I don't usually write code, so I'm glad you pointed that out.
It is certainly more beautiful there. I will make the change. Thanks.