diff options
author | Chris Laplante <chris.laplante@agilent.com> | 2023-10-23 12:46:13 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-14 23:39:53 +0000 |
commit | f6aa17c2dd82ffe8c37fd6bfea505d9e686b322d (patch) | |
tree | 136f6ea511d40abadccc0235c8eb4a9c0366f78f /bitbake | |
parent | 221a7b752fd59b9a7475fd2aae0f7eaefea5b20a (diff) | |
download | poky-f6aa17c2dd82ffe8c37fd6bfea505d9e686b322d.tar.gz |
bitbake: codegen: cleanup deprecated AST usages
This code is just completely dead as of Python 3.8, like the comment
says.
(Bitbake rev: 92be21cde6fa40d6ba5768bd09dcc77b2efe3df8)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/codegen.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bitbake/lib/codegen.py b/bitbake/lib/codegen.py index 6955a7ada5..018b283177 100644 --- a/bitbake/lib/codegen.py +++ b/bitbake/lib/codegen.py | |||
@@ -392,19 +392,7 @@ class SourceGenerator(NodeVisitor): | |||
392 | def visit_Name(self, node): | 392 | def visit_Name(self, node): |
393 | self.write(node.id) | 393 | self.write(node.id) |
394 | 394 | ||
395 | def visit_Str(self, node): | ||
396 | self.write(repr(node.s)) | ||
397 | |||
398 | def visit_Bytes(self, node): | ||
399 | self.write(repr(node.s)) | ||
400 | |||
401 | def visit_Num(self, node): | ||
402 | self.write(repr(node.n)) | ||
403 | |||
404 | def visit_Constant(self, node): | 395 | def visit_Constant(self, node): |
405 | # Python 3.8 deprecated visit_Num(), visit_Str(), visit_Bytes(), | ||
406 | # visit_NameConstant() and visit_Ellipsis(). They can be removed once we | ||
407 | # require 3.8+. | ||
408 | self.write(repr(node.value)) | 396 | self.write(repr(node.value)) |
409 | 397 | ||
410 | def visit_Tuple(self, node): | 398 | def visit_Tuple(self, node): |