From d9d80e5710a0cf2ec06341c9e9b2bc3c7d0e48af Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 17 Feb 2022 19:54:44 -0300 Subject: [PATCH] Fixed the C402 fix --- kibot/kicad/sexpdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/kicad/sexpdata.py b/kibot/kicad/sexpdata.py index cab4915d..786e1d47 100644 --- a/kibot/kicad/sexpdata.py +++ b/kibot/kicad/sexpdata.py @@ -488,7 +488,7 @@ class Symbol(SExpBase): (';', r'\;'), ('#', r'\#'), ] - _lisp_quoted_to_raw = {(q, r) for (r, q) in _lisp_quoted_specials} + _lisp_quoted_to_raw = {q: r for (r, q) in _lisp_quoted_specials} def tosexp(self, tosexp=None): return self.quote(self._val) @@ -501,7 +501,7 @@ class String(SExpBase): ('"', '\\"'), ('\b', '\\b'), ('\f', '\\f'), ('\n', '\\n'), ('\r', '\\r'), ('\t', '\\t')] - _lisp_quoted_to_raw = {(q, r) for (r, q) in _lisp_quoted_specials} + _lisp_quoted_to_raw = {q: r for (r, q) in _lisp_quoted_specials} def tosexp(self, tosexp=None): return uformat('"{0}"', self.quote(self._val))