Skip to content

Commit

Permalink
write_asm의 안쓰이는 파라미터 제거, 'code' -> 'text'
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Apr 7, 2024
1 parent c53a597 commit e796751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aheui/aheui.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def open_w(filename):
return os.open(filename, os.O_WRONLY | os.O_CREAT, 0o644)


def prepare_compiler(contents, opt_level=2, source='code', aheuic_output=None, add_debug_info=False):
def prepare_compiler(contents, opt_level=2, source='text', aheuic_output=None, add_debug_info=False):
compiler = compile.Compiler()
if source == 'bytecode':
compiler.read_bytecode(contents)
Expand Down
2 changes: 1 addition & 1 deletion aheui/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def read_bytecode(self, text):
if op in c.OP_JUMPS:
self.label_map[val] = val

def write_asm(self, fp=1, commented=True):
def write_asm(self, commented=True):
"""Write assembly representation with comments."""
codes = []
for i, (op, val) in enumerate(self.lines):
Expand Down

0 comments on commit e796751

Please sign in to comment.