mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-06-15 10:41:43 +03:00
fixed tab/space inconsistency with patch provided by Andreas Hanke (bug
* python/libxsl.py: fixed tab/space inconsistency with patch provided by Andreas Hanke (bug #409193) svn path=/trunk/; revision=1422
This commit is contained in:
@ -20,9 +20,9 @@ else:
|
||||
if osname == 'Linux' or osname == 'SunOS':
|
||||
RTLD_GLOBAL = 0x00100
|
||||
RTLD_NOW = 0x00002
|
||||
elif osname == 'Darwin':
|
||||
RTLD_GLOBAL = 0x8
|
||||
RTLD_NOW = 0x2
|
||||
elif osname == 'Darwin':
|
||||
RTLD_GLOBAL = 0x8
|
||||
RTLD_NOW = 0x2
|
||||
#
|
||||
# is there a better method ?
|
||||
#
|
||||
@ -30,12 +30,12 @@ else:
|
||||
# print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||
# "on this platform: %s" % (osname)
|
||||
except:
|
||||
pass
|
||||
pass
|
||||
# print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||
# "on this platform: %s" % (osname)
|
||||
except:
|
||||
RTLD_GLOBAL = -1
|
||||
RTLD_NOW = -1
|
||||
RTLD_GLOBAL = -1
|
||||
RTLD_NOW = -1
|
||||
|
||||
if RTLD_GLOBAL != -1 and RTLD_NOW != -1:
|
||||
try:
|
||||
@ -102,21 +102,21 @@ class extensionModule:
|
||||
|
||||
def styleInit(self, style, URI):
|
||||
"""Callback function when used in a newly compiled stylesheet,
|
||||
the return value is passed in subsequent calls"""
|
||||
pass
|
||||
the return value is passed in subsequent calls"""
|
||||
pass
|
||||
|
||||
def styleShutdown(self, style, URI, data):
|
||||
"""Callback function when a stylesheet using it is destroyed"""
|
||||
pass
|
||||
pass
|
||||
|
||||
def ctxtInit(self, ctxt, URI):
|
||||
"""Callback function when used in a new transformation process,
|
||||
the return value is passed in subsequent calls"""
|
||||
pass
|
||||
the return value is passed in subsequent calls"""
|
||||
pass
|
||||
|
||||
def ctxtShutdown(self, ctxt, URI, data):
|
||||
"""Callback function when a transformation using it finishes"""
|
||||
pass
|
||||
pass
|
||||
|
||||
def cleanup():
|
||||
"""Cleanup all libxslt and libxml2 memory allocated"""
|
||||
|
Reference in New Issue
Block a user