From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MbyoC-0003Bh-RZ for garchives@archives.gentoo.org; Fri, 14 Aug 2009 15:35:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4AF4E0652; Fri, 14 Aug 2009 15:35:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 90EF2E0652 for ; Fri, 14 Aug 2009 15:35:11 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 27F5D6664C for ; Fri, 14 Aug 2009 15:35:11 +0000 (UTC) Received: from arfrever by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1MbyoA-0001Vv-Jk for gentoo-commits@lists.gentoo.org; Fri, 14 Aug 2009 15:35:10 +0000 From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, arfrever@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-python/fonttools/files: fonttools-2.2-fix_syntax.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: fonttools-2.2-fix_syntax.patch X-VCS-Directories: dev-python/fonttools/files X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis Content-Type: text/plain; charset=utf8 Message-Id: Sender: Arfrever Frehtes Taifersar Arahesis Date: Fri, 14 Aug 2009 15:35:10 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: cfcfe472-9a46-47f0-96b3-4818f7495d7e X-Archives-Hash: b8c2d61f6cc84341d208191ddc20c6eb arfrever 09/08/14 15:35:10 Added: fonttools-2.2-fix_syntax.patch Log: Fix syntax (bug #265805). (Portage version: 14029-svn/cvs/Linux x86_64) Revision Changes Path 1.1 dev-python/fonttools/files/fonttools-2.2-fix_syntax.= patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/fonttoo= ls/files/fonttools-2.2-fix_syntax.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/fonttoo= ls/files/fonttools-2.2-fix_syntax.patch?rev=3D1.1&content-type=3Dtext/pla= in Index: fonttools-2.2-fix_syntax.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Lib/fontTools/ttLib/tables/_c_m_a_p.py +++ Lib/fontTools/ttLib/tables/_c_m_a_p.py @@ -174,7 +174,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(data[offset:offset+int(length)], ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" data =3D self.data # decompileHeader assigns the data after the header= to self.data assert 262 =3D=3D self.length, "Format 0 cmap subtable not 262 bytes" glyphIdArray =3D array.array("B") @@ -262,7 +262,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(data[offset:offset+int(length)], ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" =20 data =3D self.data # decompileHeader assigns the data after the header= to self.data subHeaderKeys =3D [] @@ -632,7 +632,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(self.data[offset:offset+int(length)], ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" =20 data =3D self.data # decompileHeader assigns the data after the header= to self.data (segCountX2, searchRange, entrySelector, rangeShift) =3D \ @@ -836,7 +836,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(data[offset:offset+int(length)], ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" =20 data =3D self.data # decompileHeader assigns the data after the header= to self.data firstCode, entryCount =3D struct.unpack(">HH", data[:4]) @@ -924,7 +924,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(data[offset:offset+int(length)], ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" =20 data =3D self.data # decompileHeader assigns the data after the header= to self.data charCodes =3D [] @@ -1086,7 +1086,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(data, ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" data =3D self.data =09 self.cmap =3D {} # so that clients that expect this to exist in a cmap= table won't fail. @@ -1277,7 +1277,7 @@ if data !=3D None and ttFont !=3D None: self.decompileHeader(data[offset:offset+int(length)], ttFont) else: - assert( (data =3D=3D None and (ttFont =3D=3D None), "Need both data a= nd ttFont arguments")) + assert (data =3D=3D None and ttFont =3D=3D None), "Need both data and= ttFont arguments" =20 def compile(self, ttFont): if self.data: --- Lib/fontTools/ttLib/tables/ttProgram.py +++ Lib/fontTools/ttLib/tables/ttProgram.py @@ -394,7 +394,7 @@ =09 p =3D Program() p.fromBytecode(bc) - as =3D p.getAssembly() - p.fromAssembly(as) + assembly =3D p.getAssembly() + p.fromAssembly(assembly) print bc =3D=3D p.getBytecode() =20