diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-20 23:58:10 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-20 23:58:10 +0200 |
commit | f39bf3cbbc7815cd041ce9c04723209f2aff729e (patch) | |
tree | ac50146f5ba84a911e3feae0e0966bb2018d6a9f /parser.py | |
parent | 995ff1de4463e9a3d3ab8825049e139320ab4c38 (diff) | |
download | ruamel.yaml-f39bf3cbbc7815cd041ce9c04723209f2aff729e.tar.gz |
some minor speed ups through removal of indirection overhead, re #159
Diffstat (limited to 'parser.py')
-rw-r--r-- | parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -123,14 +123,14 @@ class Parser(object): def scanner(self): # type: () -> Any if hasattr(self.loader, 'typ'): - self.loader.scanner + return self.loader.scanner return self.loader._scanner @property def resolver(self): # type: () -> Any if hasattr(self.loader, 'typ'): - self.loader.resolver + return self.loader.resolver return self.loader._resolver def check_event(self, *choices): |