From: Batuhan Taskaya Date: Fri, 14 Jan 2022 02:01:44 +0000 (+0300) Subject: Don't make redundant copies of the DFA (#2763) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/7a2956811534d7d20128ba6e911721749052b627?ds=sidebyside;hp=799f76f537f72ade97b8e6637c59fee49e05a4ab Don't make redundant copies of the DFA (#2763) --- diff --git a/src/blib2to3/pgen2/parse.py b/src/blib2to3/pgen2/parse.py index 4a23d53..a9dc11f 100644 --- a/src/blib2to3/pgen2/parse.py +++ b/src/blib2to3/pgen2/parse.py @@ -54,7 +54,7 @@ def stack_copy( stack: List[Tuple[DFAS, int, RawNode]] ) -> List[Tuple[DFAS, int, RawNode]]: """Nodeless stack copy.""" - return [(copy.deepcopy(dfa), label, DUMMY_NODE) for dfa, label, _ in stack] + return [(dfa, label, DUMMY_NODE) for dfa, label, _ in stack] class Recorder: