diff options
author | ptmcg <ptmcg@austin.rr.com> | 2023-02-12 10:18:04 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2023-02-12 10:18:04 -0600 |
commit | 8e7ed8f2704f8d64bd79c1308c19d2b6fe0f781c (patch) | |
tree | 75efdb08c83a0edd32d0ce88104c5f533437459e | |
parent | 14def7d7f454bfe891589a67801854b12e0b5ed2 (diff) | |
download | pyparsing-git-8e7ed8f2704f8d64bd79c1308c19d2b6fe0f781c.tar.gz |
Remove future import annotations - fixes #465
-rw-r--r-- | pyparsing/core.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py index e778272..9fbb6d0 100644 --- a/pyparsing/core.py +++ b/pyparsing/core.py @@ -1,7 +1,6 @@ # # core.py # -from __future__ import annotations from collections import deque import os @@ -4524,8 +4523,8 @@ class ParseElementEnhance(ParserElement): super().leave_whitespace(recursive) if recursive: - self.expr = self.expr.copy() if self.expr is not None: + self.expr = self.expr.copy() self.expr.leave_whitespace(recursive) return self @@ -4533,8 +4532,8 @@ class ParseElementEnhance(ParserElement): super().ignore_whitespace(recursive) if recursive: - self.expr = self.expr.copy() if self.expr is not None: + self.expr = self.expr.copy() self.expr.ignore_whitespace(recursive) return self |