Commit cc89b844 authored by Daniele Tricoli's avatar Daniele Tricoli 🦀

Refresh avoid-timestamped-gzip.patch

parent ba2c1c4a
From: Daniele Tricoli <eriol@mornie.org>
Date: Sun, 11 Oct 2015 20:35:02 +0200
Subject: Avoid timestamps in gzip-compressed file and use
Date: Thu, 29 Nov 2018 21:54:36 +0100
Subject: Avoid timestamps in gzip-compressed file and use compressionlevel=9
to reduce data size
compressionlevel=9 to reduce data size.
Forwarded: https://github.com/euske/pdfminer/pull/119
Last-Update: 2015-08-17
Patch-Name: avoid-timestamped-gzip.patch
---
tools/conv_cmap.py | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/tools/conv_cmap.py b/tools/conv_cmap.py
index f5b62cc..09557bf 100755
index dea750a..219765c 100755
--- a/tools/conv_cmap.py
+++ b/tools/conv_cmap.py
@@ -180,16 +180,22 @@ def main(argv):
@@ -189,16 +189,22 @@ def main(argv):
fname = '%s.pickle.gz' % enc
path = os.path.join(outdir, fname)
print >>sys.stderr, 'writing: %r...' % path
print ('writing: %r...' % path)
- fp = gzip.open(path, 'wb')
- converter.dump_cmap(fp, enc)
- fp.close()
......@@ -31,7 +28,7 @@ index f5b62cc..09557bf 100755
fname = 'to-unicode-%s.pickle.gz' % regname
path = os.path.join(outdir, fname)
print >>sys.stderr, 'writing: %r...' % path
print ('writing: %r...' % path)
- fp = gzip.open(path, 'wb')
- converter.dump_unicodemap(fp)
- fp.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment