Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37911818
en ru br
ALT Linux repositórios
S:0.4.4-alt3

Group :: Gráficos
RPM: textext

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: textext-0.4.4-python2.6.patch
Download


Patch by adin, see
https://laconsigna.wordpress.com/2010/11/13/fixing-textext-on-inkscape-0-48/
--- textext.py	2008-10-04 13:46:02.000000000 +0300
+++ textext.py	2012-11-09 20:37:00.000000000 +0200
@@ -52,7 +52,7 @@
 sys.path.append(os.path.dirname(__file__))
 
 import inkex
-import os, sys, tempfile, traceback, glob, re, md5, copy
+import os, sys, tempfile, traceback, glob, re, hashlib, copy
 from lxml import etree
 
 USE_GTK = False
@@ -868,10 +868,13 @@
     def __init__(self, document):
         PdfConverterBase.__init__(self, document)
         self.hash = None
+	USE_GTK = False
 
     def convert(self, *a, **kw):
         # compute hash for generating unique ids for sub-elements
-        self.hash = md5.new('%s%s' % (a, kw)).hexdigest()[:8]
+	m = hashlib.md5()
+	m.update('%s%s' % (a, kw))
+	self.hash = m.hexdigest()[:8]
         return PdfConverterBase.convert(self, *a, **kw)
 
     def pdf_to_svg(self):
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009