We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c11467 commit f6db66bCopy full SHA for f6db66b
compiler/pyassem.py
@@ -611,7 +611,7 @@ def __init__(self):
611
612
def addCode(self, *args):
613
for arg in args:
614
- self.code.append(chr(arg))
+ self.code.append(arg)
615
self.codeOffset = self.codeOffset + len(args)
616
617
def nextLine(self, lineno):
@@ -647,10 +647,10 @@ def nextLine(self, lineno):
647
self.lastoff = self.codeOffset
648
649
def getCode(self):
650
- return ''.join(self.code)
+ return bytes(self.code)
651
652
def getTable(self):
653
- return ''.join(map(chr, self.lnotab))
+ return bytes(self.lnotab)
654
655
class StackDepthTracker:
656
# XXX 1. need to keep track of stack depth on jumps
0 commit comments