Commit b81392e4 authored by Ondřej Nový's avatar Ondřej Nový

Convert git repository from git-dpm to gbp layout

parent d02c63ac
......@@ -3,7 +3,7 @@
PACKAGE=pdfminer
PYTHON=python
PYTHON=python2
GIT=git
RM=rm -f
CP=cp -f
......
# see git-dpm(1) from git-dpm package
d380a9fb3ab43c254f18c15849c4419392494ea3
d380a9fb3ab43c254f18c15849c4419392494ea3
bdc59684f56bcf06cd3c23aa214cbf3125b8fc48
bdc59684f56bcf06cd3c23aa214cbf3125b8fc48
pdfminer_20140328+dfsg.orig.tar.gz
921bdb7dfadf067676855af4492a469b462940ca
2031505
debianTag="debian/%e%v"
patchedTag="patched/%e%v"
upstreamTag="upstream/%e%u"
......@@ -6,6 +6,7 @@ pdfminer (20140328+dfsg-2) UNRELEASED; urgency=medium
* d/watch: Use https protocol
* d/control: Remove trailing whitespaces
* d/control: Remove ancient X-Python-Version field
* Convert git repository from git-dpm to gbp layout
-- Ondřej Nový <novy@ondrej.org> Tue, 29 Mar 2016 21:45:56 +0200
......
......@@ -135,7 +135,7 @@ class CMapConverter(object):
IS_VERTICAL=self.is_vertical.get(enc, False),
CODE2CID=self.code2cid.get(enc),
)
fp.write(pickle.dumps(data, protocol=2))
fp.write(pickle.dumps(data))
return
def dump_unicodemap(self, fp):
......@@ -143,7 +143,7 @@ class CMapConverter(object):
CID2UNICHR_H=self.cid2unichr_h,
CID2UNICHR_V=self.cid2unichr_v,
)
fp.write(pickle.dumps(data, protocol=2))
fp.write(pickle.dumps(data))
return
# main
......@@ -180,22 +180,16 @@ def main(argv):
fname = '%s.pickle.gz' % enc
path = os.path.join(outdir, fname)
print >>sys.stderr, 'writing: %r...' % path
with open(path, 'wb') as fp:
# with statement support for GzipFile is available only from Python
# 2.7
fgz = gzip.GzipFile('', 'wb', 9, fp, 0.)
converter.dump_cmap(fgz, enc)
fgz.close()
fp = gzip.open(path, 'wb')
converter.dump_cmap(fp, enc)
fp.close()
fname = 'to-unicode-%s.pickle.gz' % regname
path = os.path.join(outdir, fname)
print >>sys.stderr, 'writing: %r...' % path
with open(path, 'wb') as fp:
# with statement support for GzipFile is available only from Python
# 2.7
fgz = gzip.GzipFile('', 'wb', 9, fp, 0.)
converter.dump_unicodemap(fgz)
fgz.close()
fp = gzip.open(path, 'wb')
converter.dump_unicodemap(fp)
fp.close()
return
if __name__ == '__main__': sys.exit(main(sys.argv))
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