Skip to content

Commit 599f573

Browse files
committed
Python: Preserve comments and docstrings in extractor
1 parent 752d28c commit 599f573

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/extractor/make_zips.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import compileall
99

1010
from python_tracer import getzipfilename
11-
from unparse import strip_comments_and_docstrings
1211

1312
# TO DO -- Add options to set destination directory and source directory
1413

@@ -84,9 +83,7 @@ def write_source(zipped, root, name, extensions=[".py"]):
8483
if ext not in extensions:
8584
continue
8685
path = os.path.join(dirpath, name)
87-
temp = strip_comments_and_docstrings(path)
88-
zipped.write(temp, os.path.relpath(path, root))
89-
os.remove(temp)
86+
zipped.write(path, os.path.relpath(path, root))
9087

9188
def main():
9289
parser = optparse.OptionParser(usage = "usage: %prog [install-dir]")

0 commit comments

Comments
 (0)