diff options
-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): |