Skip to content

Commit 4f84d71

Browse files
author
Dave Abrahams
committed
Merge pull request #837 from practicalswift/python-fixes-20160101
[Python] Remove unused imports and unused local variables
2 parents 7daaa22 + 6b73cab commit 4f84d71

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

utils/name-compression/HuffGen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
import sys
4-
from heapq import heappush, heappop, heapify
4+
from heapq import heappush, heappop
55
from collections import defaultdict
66

77
filenames = sys.argv[1:]
@@ -16,7 +16,6 @@ def addLine(line):
1616
"""
1717
Analyze the frequency of letters in \p line.
1818
"""
19-
max_string_length = 8
2019
for c in line: hist[c] += 1
2120

2221
# Read all of the input files and analyze the content of the files.

utils/update-checkout

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ from SwiftBuildSupport import (
2121
SWIFT_SOURCE_ROOT,
2222
WorkingDirectory,
2323
check_call,
24-
check_output,
2524
)
2625

2726
def update_working_copy(repo_path):

0 commit comments

Comments
 (0)