* [gentoo-commits] gentoo-x86 commit in sci-chemistry/bkchem/files: 0.14.0_pre1-piddle-Fix-assertions.patch
@ 2010-06-18 18:09 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2010-06-18 18:09 UTC (permalink / raw
To: gentoo-commits
jlec 10/06/18 18:09:45
Added: 0.14.0_pre1-piddle-Fix-assertions.patch
Log:
Fix Assertions, thanks rei4dan for providing the patch
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Revision Changes Path
1.1 sci-chemistry/bkchem/files/0.14.0_pre1-piddle-Fix-assertions.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/bkchem/files/0.14.0_pre1-piddle-Fix-assertions.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/bkchem/files/0.14.0_pre1-piddle-Fix-assertions.patch?rev=1.1&content-type=text/plain
Index: 0.14.0_pre1-piddle-Fix-assertions.patch
===================================================================
diff --git a/bkchem/plugins/piddle/pdfgen.py b/bkchem/plugins/piddle/pdfgen.py
index 5213672..4c056c7 100644
--- a/bkchem/plugins/piddle/pdfgen.py
+++ b/bkchem/plugins/piddle/pdfgen.py
@@ -639,7 +639,7 @@ class Canvas:
#use a flate filter and Ascii Base 85 to compress
raw = myimage.tostring()
- assert(len(raw) == imgwidth * imgheight, "Wrong amount of data for image")
+ assert len(raw) == imgwidth * imgheight, "Wrong amount of data for image"
compressed = zlib.compress(raw) #this bit is very fast...
encoded = pdfutils._AsciiBase85Encode(compressed) #...sadly this isn't
diff --git a/bkchem/plugins/piddle/pdfutils.py b/bkchem/plugins/piddle/pdfutils.py
index ebde677..4a7675d 100644
--- a/bkchem/plugins/piddle/pdfutils.py
+++ b/bkchem/plugins/piddle/pdfutils.py
@@ -27,7 +27,7 @@ def cacheImageFile(filename):
code.append('ID')
#use a flate filter and Ascii Base 85
raw = img.tostring()
- assert(len(raw) == imgwidth * imgheight, "Wrong amount of data for image")
+ assert len(raw) == imgwidth * imgheight, "Wrong amount of data for image"
compressed = zlib.compress(raw) #this bit is very fast...
encoded = _AsciiBase85Encode(compressed) #...sadly this isn't
diff --git a/bkchem/plugins/piddle/piddlePS.py b/bkchem/plugins/piddle/piddlePS.py
index 4d3c327..3afa361 100644
--- a/bkchem/plugins/piddle/piddlePS.py
+++ b/bkchem/plugins/piddle/piddlePS.py
@@ -866,7 +866,7 @@ translate
# piddlePDF again
rawimage = myimage.tostring()
- assert(len(rawimage) == imgwidth*imgheight, 'Wrong amount of data for image')
+ assert len(rawimage) == imgwidth*imgheight, 'Wrong amount of data for image'
#compressed = zlib.compress(rawimage) # no zlib at moment
hex_encoded = self._AsciiHexEncode(rawimage)
@@ -957,7 +957,7 @@ translate
'image'])
# after image operator just need to dump image dat to file as hexstring
rawimage = myimage.tostring()
- assert(len(rawimage) == imwidth*imheight, 'Wrong amount of data for image')
+ assert len(rawimage) == imwidth*imheight, 'Wrong amount of data for image'
#compressed = zlib.compress(rawimage) # no zlib at moment
hex_encoded = self._AsciiHexEncode(rawimage)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-18 18:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-18 18:09 [gentoo-commits] gentoo-x86 commit in sci-chemistry/bkchem/files: 0.14.0_pre1-piddle-Fix-assertions.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox