aboutsummaryrefslogtreecommitdiff
path: root/ass3/q2/header.py
diff options
context:
space:
mode:
Diffstat (limited to 'ass3/q2/header.py')
-rw-r--r--ass3/q2/header.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ass3/q2/header.py b/ass3/q2/header.py
index 0db542f..a10b9a9 100644
--- a/ass3/q2/header.py
+++ b/ass3/q2/header.py
@@ -59,7 +59,6 @@ def huffman(string):
new_node = first + second
heapq.heappush(nodes, new_node)
root = nodes[0]
- root.dfs_apply(print)
huffman_calculate(root)
result = {}
for leaf in leaves:
@@ -110,7 +109,7 @@ def write_file(filename, contents):
def main():
assert len(sys.argv) >= 2
string = read_file(sys.argv[1])
- write_file("output_header.txt", header(string)[0])
+ write_file("output_header.txt", header(string))
if __name__ == "__main__":
main()