Browse Source

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>
Chris Laplante 1 year ago
parent
commit
f6aa17c2dd
1 changed files with 0 additions and 12 deletions
  1. 0 12
      bitbake/lib/codegen.py

+ 0 - 12
bitbake/lib/codegen.py

@@ -392,19 +392,7 @@ class SourceGenerator(NodeVisitor):
     def visit_Name(self, node):
         self.write(node.id)
 
-    def visit_Str(self, node):
-        self.write(repr(node.s))
-
-    def visit_Bytes(self, node):
-        self.write(repr(node.s))
-
-    def visit_Num(self, node):
-        self.write(repr(node.n))
-
     def visit_Constant(self, node):
-        # Python 3.8 deprecated visit_Num(), visit_Str(), visit_Bytes(),
-        # visit_NameConstant() and visit_Ellipsis(). They can be removed once we
-        # require 3.8+.
         self.write(repr(node.value))
 
     def visit_Tuple(self, node):