Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/python-markupsafe.spec'], False, '/var/lib/mock/fedora-16-x86_64/root/', None, 0, True, False, 500, 475, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/python-markupsafe.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-markupsafe-0.11-4.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-markupsafe.spec'], False, '/var/lib/mock/fedora-16-x86_64/root/', None, 0, True, False, 500, 475, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-markupsafe.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cy73XQ + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf MarkupSafe-0.11 + /usr/bin/gzip -dc /builddir/build/SOURCES/MarkupSafe-0.11.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd MarkupSafe-0.11 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16 + cp -a . /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16 + 2to3 --write --nobackups /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16 RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: No changes to /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/setup.py RefactoringTool: Refactored /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/__init__.py --- /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/__init__.py (original) +++ /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/__init__.py (refactored) @@ -9,7 +9,7 @@ :license: BSD, see LICENSE for more details. """ import re -from itertools import imap + __all__ = ['Markup', 'soft_unicode', 'escape', 'escape_silent'] @@ -19,7 +19,7 @@ _entity_re = re.compile(r'&([^;]+);') -class Markup(unicode): +class Markup(str): r"""Marks a string as being safe for inclusion in HTML/XML output without needing to be escaped. This implements the `__html__` interface a couple of frameworks and web applications use. :class:`Markup` is a direct @@ -64,60 +64,60 @@ """ __slots__ = () - def __new__(cls, base=u'', encoding=None, errors='strict'): + def __new__(cls, base='', encoding=None, errors='strict'): if hasattr(base, '__html__'): base = base.__html__() if encoding is None: - return unicode.__new__(cls, base) - return unicode.__new__(cls, base, encoding, errors) + return str.__new__(cls, base) + return str.__new__(cls, base, encoding, errors) def __html__(self): return self def __add__(self, other): - if hasattr(other, '__html__') or isinstance(other, basestring): - return self.__class__(unicode(self) + unicode(escape(other))) + if hasattr(other, '__html__') or isinstance(other, str): + return self.__class__(str(self) + str(escape(other))) return NotImplemented def __radd__(self, other): - if hasattr(other, '__html__') or isinstance(other, basestring): - return self.__class__(unicode(escape(other)) + unicode(self)) + if hasattr(other, '__html__') or isinstance(other, str): + return self.__class__(str(escape(other)) + str(self)) return NotImplemented def __mul__(self, num): - if isinstance(num, (int, long)): - return self.__class__(unicode.__mul__(self, num)) + if isinstance(num, int): + return self.__class__(str.__mul__(self, num)) return NotImplemented __rmul__ = __mul__ def __mod__(self, arg): if isinstance(arg, tuple): - arg = tuple(imap(_MarkupEscapeHelper, arg)) + arg = tuple(map(_MarkupEscapeHelper, arg)) else: arg = _MarkupEscapeHelper(arg) - return self.__class__(unicode.__mod__(self, arg)) + return self.__class__(str.__mod__(self, arg)) def __repr__(self): return '%s(%s)' % ( self.__class__.__name__, - unicode.__repr__(self) + str.__repr__(self) ) def join(self, seq): - return self.__class__(unicode.join(self, imap(escape, seq))) - join.__doc__ = unicode.join.__doc__ + return self.__class__(str.join(self, map(escape, seq))) + join.__doc__ = str.join.__doc__ def split(self, *args, **kwargs): - return map(self.__class__, unicode.split(self, *args, **kwargs)) - split.__doc__ = unicode.split.__doc__ + return list(map(self.__class__, str.split(self, *args, **kwargs))) + split.__doc__ = str.split.__doc__ def rsplit(self, *args, **kwargs): - return map(self.__class__, unicode.rsplit(self, *args, **kwargs)) - rsplit.__doc__ = unicode.rsplit.__doc__ + return list(map(self.__class__, str.rsplit(self, *args, **kwargs))) + rsplit.__doc__ = str.rsplit.__doc__ def splitlines(self, *args, **kwargs): - return map(self.__class__, unicode.splitlines(self, *args, **kwargs)) - splitlines.__doc__ = unicode.splitlines.__doc__ + return list(map(self.__class__, str.splitlines(self, *args, **kwargs))) + splitlines.__doc__ = str.splitlines.__doc__ def unescape(self): r"""Unescape markup again into an unicode string. This also resolves @@ -130,16 +130,16 @@ def handle_match(m): name = m.group(1) if name in HTML_ENTITIES: - RefactoringTool: Refactored /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/_native.py RefactoringTool: Refactored /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/tests.py return unichr(HTML_ENTITIES[name]) + return chr(HTML_ENTITIES[name]) try: if name[:2] in ('#x', '#X'): - return unichr(int(name[2:], 16)) + return chr(int(name[2:], 16)) elif name.startswith('#'): - return unichr(int(name[1:])) + return chr(int(name[1:])) except ValueError: pass - return u'' - return _entity_re.sub(handle_match, unicode(self)) + return '' + return _entity_re.sub(handle_match, str(self)) def striptags(self): r"""Unescape markup into an unicode string and strip all tags. This @@ -149,7 +149,7 @@ >>> Markup("Main » About").striptags() u'Main \xbb About' """ - stripped = u' '.join(_striptags_re.sub('', self).split()) + stripped = ' '.join(_striptags_re.sub('', self).split()) return Markup(stripped).unescape() @classmethod @@ -164,10 +164,10 @@ return rv def make_wrapper(name): - orig = getattr(unicode, name) + orig = getattr(str, name) def func(self, *args, **kwargs): args = _escape_argspec(list(args), enumerate(args)) - _escape_argspec(kwargs, kwargs.iteritems()) + _escape_argspec(kwargs, iter(kwargs.items())) return self.__class__(orig(self, *args, **kwargs)) func.__name__ = orig.__name__ func.__doc__ = orig.__doc__ @@ -180,20 +180,20 @@ locals()[method] = make_wrapper(method) # new in python 2.5 - if hasattr(unicode, 'partition'): + if hasattr(str, 'partition'): def partition(self, sep): return tuple(map(self.__class__, - unicode.partition(self, escape(sep)))) + str.partition(self, escape(sep)))) def rpartition(self, sep): return tuple(map(self.__class__, - unicode.rpartition(self, escape(sep)))) + str.rpartition(self, escape(sep)))) # new in python 2.6 - if hasattr(unicode, 'format'): + if hasattr(str, 'format'): format = make_wrapper('format') # not in python 3 - if hasattr(unicode, '__getslice__'): + if hasattr(str, '__getslice__'): __getslice__ = make_wrapper('__getslice__') del method, make_wrapper @@ -202,7 +202,7 @@ def _escape_argspec(obj, iterable): """Helper for various string-wrapped functions.""" for key, value in iterable: - if hasattr(value, '__html__') or isinstance(value, basestring): + if hasattr(value, '__html__') or isinstance(value, str): obj[key] = escape(value) return obj @@ -215,7 +215,7 @@ __getitem__ = lambda s, x: _MarkupEscapeHelper(s.obj[x]) __str__ = lambda s: str(escape(s.obj)) - __unicode__ = lambda s: unicode(escape(s.obj)) + __unicode__ = lambda s: str(escape(s.obj)) __repr__ = lambda s: str(escape(repr(s.obj))) __int__ = lambda s: int(s.obj) __float__ = lambda s: float(s.obj) --- /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/_native.py (original) +++ /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/_native.py (refactored) @@ -18,7 +18,7 @@ """ if hasattr(s, '__html__'): return s.__html__() - return Markup(unicode(s) + return Markup(str(s) .replace('&', '&') .replace('>', '>') .replace('<', '<') @@ -40,6 +40,6 @@ """Make a string unicode if it isn't already. That way a markup string is not converted back to unicode. """ - if not isinstance(s, unicode): - s = unicode(s) + if not isinstance(s, str): + s = str(s) return s --- /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/tests.py (original) +++ /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/tests.py (refactored) @@ -9,7 +9,7 @@ # adding two strings should escape the unsafe one unsafe = '' safe = Markup('username') - assert unsafe + safe == unicode(escape(unsafe)) + unicode(safe) + assert unsafe + safe == str(escape(unsafe)) + str(safe) # string interpolations are safe to use too assert Markup('%s') % '' == \ @@ -48,19 +48,19 @@ def test_escape_silent(self): assert escape_silent(None) == Markup() assert escape(None) == Markup(None) - assert escape_silent('') == Markup(u'<foo>') + assert escape_silent('') == Markup('<foo>') class MarkupLeakTestCase(unittest.TestCase): def test_markup_leaks(self): counts = set() - for count in xrange(20): - for item in xrange(1000): + for count in range(20): + for item in range(1000): escape("foo") escape("") - escape(u"foo") - escape(u"") + escape("foo") + escape("") counts.add(len(gc.get_objects())) assert len(counts) == 1, 'ouch, c extension seems to leak objects' RefactoringTool: Files that were modified: RefactoringTool: /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/setup.py RefactoringTool: /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/__init__.py RefactoringTool: /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/_native.py RefactoringTool: /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/markupsafe/tests.py + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AH1ebx + umask 022 + cd /builddir/build/BUILD + cd MarkupSafe-0.11 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + /usr/bin/python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/markupsafe copying markupsafe/_constants.py -> build/lib.linux-x86_64-2.7/markupsafe copying markupsafe/_native.py -> build/lib.linux-x86_64-2.7/markupsafe copying markupsafe/__init__.py -> build/lib.linux-x86_64-2.7/markupsafe copying markupsafe/tests.py -> build/lib.linux-x86_64-2.7/markupsafe running egg_info writing MarkupSafe.egg-info/PKG-INFO writing top-level names to MarkupSafe.egg-info/top_level.txt writing dependency_links to MarkupSafe.egg-info/dependency_links.txt reading manifest file 'MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MarkupSafe.egg-info/SOURCES.txt' copying markupsafe/_speedups.c -> build/lib.linux-x86_64-2.7/markupsafe running build_ext building 'markupsafe._speedups' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/markupsafe gcc -pthread -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o markupsafe/_speedups.c: In function 'escape': markupsafe/_speedups.c:157:2: warning: dereferencing NULL (s->ob_refcnt) at markupsafe/_speedups.c:157 [enabled by default] markupsafe/_speedups.c:123:5: note: taking False path at: if (PyLong_CheckExact(text) || markupsafe/_speedups.c:125:6: note: reaching: PyInt_CheckExact(text) || markupsafe/_speedups.c:123:30: note: taking False path at: if (PyLong_CheckExact(text) || markupsafe/_speedups.c:127:6: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:125:29: note: taking False path at: PyInt_CheckExact(text) || markupsafe/_speedups.c:127:34: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:31: note: taking False path at: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:53: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:53: note: taking False path at: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:132:7: note: reaching: html = PyObject_GetAttrString(text, "__html__"); markupsafe/_speedups.c:132:7: note: when PyObject_GetAttrString() fails at: html = PyObject_GetAttrString(text, "__html__"); markupsafe/_speedups.c:133:5: note: taking False path at: if (html) { markupsafe/_speedups.c:140:13: note: reaching: PyErr_Clear(); markupsafe/_speedups.c:140:13: note: calling PyErr_Clear() at: PyErr_Clear(); markupsafe/_speedups.c:141:5: note: when considering value == (long int)0 from markupsafe/_speedups.c:141 at: if (!PyUnicode_Check(text)) { markupsafe/_speedups.c:141:5: note: taking True path at: if (!PyUnicode_Check(text)) { markupsafe/_speedups.c:143:13: note: reaching: PyObject *unicode = PyObject_Unicode(text); markupsafe/_speedups.c:143:13: note: when PyObject_Unicode() succeeds at: PyObject *unicode = PyObject_Unicode(text); markupsafe/_speedups.c:147:6: note: taking False path at: if (!unicode) markupsafe/_speedups.c:149:5: note: reaching: s = escape_unicode((PyUnicodeObject*)unicode); markupsafe/_speedups.c:149:5: note: when escape_unicode() fails at: s = escape_unicode((PyUnicodeObject*)unicode); markupsafe/_speedups.c:150:3: note: when taking True path at: Py_DECREF(unicode); markupsafe/_speedups.c:156:35: note: reaching: rv = PyObject_CallFunctionObjArgs(markup, (PyObject*)s, NULL); markupsafe/_speedups.c:156:5: note: when PyObject_CallFunctionObjArgs() succeeds at: rv = PyObject_CallFunctionObjArgs(markup, (PyObject*)s, NULL); markupsafe/_speedups.c:157:2: note: found 5 similar trace(s) to this markupsafe/_speedups.c:119:1: note: graphical error report for function 'escape' written out to 'build/temp.linux-x86_64-2.7/markupsafe/_speedups.c.escape-refcount-errors.html' markupsafe/_speedups.c: In function 'init_constants': markupsafe/_speedups.c:53:1: warning: ob_refcnt of new ref from (unknown) PyUnicodeUCS4_DecodeASCII is 1 too high [enabled by default] markupsafe/_speedups.c:53:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) markupsafe/_speedups.c:53:1: note: but final ob_refcnt is N + 1 markupsafe/_speedups.c:33:28: note: new ref from (unknown) PyUnicodeUCS4_DecodeASCII allocated at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:33:28: note: ob_refcnt is now refs: 1 + N where N >= 0 markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:37:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['>'] = UNICHR(">"); markupsafe/_speedups.c:46:9: note: when PyImport_ImportModule() succeeds at: module = PyImport_ImportModule("markupsafe"); markupsafe/_speedups.c:47:5: note: taking False path at: if (!module) markupsafe/_speedups.c:49:33: note: reaching: markup = PyObject_GetAttrString(module, "Markup"); markupsafe/_speedups.c:49:33: note: when PyObject_GetAttrString() succeeds at: markup = PyObject_GetAttrString(module, "Markup"); markupsafe/_speedups.c:50:2: note: when taking True path at: Py_DECREF(module); markupsafe/_speedups.c:52:2: note: reaching: return 1; markupsafe/_speedups.c:53:1: note: returning markupsafe/_speedups.c:53:1: note: found 24 similar trace(s) to this markupsafe/_speedups.c:37:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10355].str) at markupsafe/_speedups.c:37 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:37:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['>'] = UNICHR(">"); markupsafe/_speedups.c:36:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10353].str) at markupsafe/_speedups.c:36 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:35:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10351].str) at markupsafe/_speedups.c:35 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:34:29: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10349].str) at markupsafe/_speedups.c:34 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:33:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10347].str) at markupsafe/_speedups.c:33 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:30:1: note: graphical error report for function 'init_constants' written out to 'build/temp.linux-x86_64-2.7/markupsafe/_speedups.c.init_constants-refcount-errors.html' gcc -pthread -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so + pushd /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16 ~/build/BUILD/python3-python-markupsafe-0.11-4.fc16 ~/build/BUILD/MarkupSafe-0.11 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib.linux-x86_64-3.2 creating build/lib.linux-x86_64-3.2/markupsafe copying markupsafe/_constants.py -> build/lib.linux-x86_64-3.2/markupsafe copying markupsafe/_native.py -> build/lib.linux-x86_64-3.2/markupsafe copying markupsafe/__init__.py -> build/lib.linux-x86_64-3.2/markupsafe copying markupsafe/tests.py -> build/lib.linux-x86_64-3.2/markupsafe running egg_info writing MarkupSafe.egg-info/PKG-INFO writing top-level names to MarkupSafe.egg-info/top_level.txt writing dependency_links to MarkupSafe.egg-info/dependency_links.txt reading manifest file 'MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MarkupSafe.egg-info/SOURCES.txt' copying markupsafe/_speedups.c -> build/lib.linux-x86_64-3.2/markupsafe Fixing build/lib.linux-x86_64-3.2/markupsafe/_constants.py build/lib.linux-x86_64-3.2/markupsafe/_native.py build/lib.linux-x86_64-3.2/markupsafe/__init__.py build/lib.linux-x86_64-3.2/markupsafe/tests.py Skipping implicit fixer: buffer Skipping implicit fixer: idioms Skipping implicit fixer: set_literal Skipping implicit fixer: ws_comma Fixing build/lib.linux-x86_64-3.2/markupsafe/_constants.py build/lib.linux-x86_64-3.2/markupsafe/_native.py build/lib.linux-x86_64-3.2/markupsafe/__init__.py build/lib.linux-x86_64-3.2/markupsafe/tests.py Skipping implicit fixer: buffer Skipping implicit fixer: idioms Skipping implicit fixer: set_literal Skipping implicit fixer: ws_comma running build_ext building 'markupsafe._speedups' extension creating build/temp.linux-x86_64-3.2 creating build/temp.linux-x86_64-3.2/markupsafe gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -I/usr/include/python3.2mu -c markupsafe/_speedups.c -o build/temp.linux-x86_64-3.2/markupsafe/_speedups.o markupsafe/_speedups.c: In function 'PyInit__speedups': markupsafe/_speedups.c:237:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] markupsafe/_speedups.c:233:5: note: when considering value == (int)0 from markupsafe/_speedups.c:233 at: if (!init_constants()) markupsafe/_speedups.c:233:5: note: taking True path at: if (!init_constants()) markupsafe/_speedups.c:234:3: note: reaching: return NULL; markupsafe/_speedups.c:237:1: note: returning markupsafe/_speedups.c:232:1: note: graphical error report for function 'PyInit__speedups' written out to 'build/temp.linux-x86_64-3.2/markupsafe/_speedups.c.PyInit__speedups-refcount-errors.html' markupsafe/_speedups.c: In function 'escape': markupsafe/_speedups.c:157:2: warning: dereferencing NULL (s->ob_refcnt) at markupsafe/_speedups.c:157 [enabled by default] markupsafe/_speedups.c:123:5: note: taking False path at: if (PyLong_CheckExact(text) || markupsafe/_speedups.c:127:6: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:123:30: note: taking False path at: if (PyLong_CheckExact(text) || markupsafe/_speedups.c:127:34: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:31: note: taking False path at: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:53: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:53: note: taking False path at: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:132:7: note: reaching: html = PyObject_GetAttrString(text, "__html__"); markupsafe/_speedups.c:132:7: note: when PyObject_GetAttrString() fails at: html = PyObject_GetAttrString(text, "__html__"); markupsafe/_speedups.c:133:5: note: taking False path at: if (html) { markupsafe/_speedups.c:140:13: note: reaching: PyErr_Clear(); markupsafe/_speedups.c:140:13: note: calling PyErr_Clear() at: PyErr_Clear(); markupsafe/_speedups.c:141:5: note: when considering value == (long int)0 from markupsafe/_speedups.c:141 at: if (!PyUnicode_Check(text)) { markupsafe/_speedups.c:141:5: note: taking True path at: if (!PyUnicode_Check(text)) { markupsafe/_speedups.c:145:13: note: reaching: PyObject *unicode = PyObject_Str(text); markupsafe/_speedups.c:145:13: note: when PyObject_Str() succeeds at: PyObject *unicode = PyObject_Str(text); markupsafe/_speedups.c:147:6: note: taking False path at: if (!unicode) markupsafe/_speedups.c:149:5: note: reaching: s = escape_unicode((PyUnicodeObject*)unicode); markupsafe/_speedups.c:149:5: note: when escape_unicode() fails at: s = escape_unicode((PyUnicodeObject*)unicode); markupsafe/_speedups.c:150:3: note: when taking True path at: Py_DECREF(unicode); markupsafe/_speedups.c:156:35: note: reaching: rv = PyObject_CallFunctionObjArgs(markup, (PyObject*)s, NULL); markupsafe/_speedups.c:156:5: note: when PyObject_CallFunctionObjArgs() succeeds at: rv = PyObject_CallFunctionObjArgs(markup, (PyObject*)s, NULL); markupsafe/_speedups.c:157:2: note: found 5 similar trace(s) to this markupsafe/_speedups.c:119:1: note: graphical error report for function 'escape' written out to 'build/temp.linux-x86_64-3.2/markupsafe/_speedups.c.escape-refcount-errors.html' markupsafe/_speedups.c: In function 'init_constants': markupsafe/_speedups.c:53:1: warning: ob_refcnt of new ref from (unknown) PyUnicodeUCS4_DecodeASCII is 1 too high [enabled by default] markupsafe/_speedups.c:53:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) markupsafe/_speedups.c:53:1: note: but final ob_refcnt is N + 1 markupsafe/_speedups.c:33:28: note: new ref from (unknown) PyUnicodeUCS4_DecodeASCII allocated at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:33:28: note: ob_refcnt is now refs: 1 + N where N >= 0 markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:37:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['>'] = UNICHR(">"); markupsafe/_speedups.c:46:9: note: when PyImport_ImportModule() succeeds at: module = PyImport_ImportModule("markupsafe"); markupsafe/_speedups.c:47:5: note: taking False path at: if (!module) markupsafe/_speedups.c:49:33: note: reaching: markup = PyObject_GetAttrString(module, "Markup"); markupsafe/_speedups.c:49:33: note: when PyObject_GetAttrString() succeeds at: markup = PyObject_GetAttrString(module, "Markup"); markupsafe/_speedups.c:50:2: note: when taking True path at: Py_DECREF(module); markupsafe/_speedups.c:52:2: note: reaching: return 1; markupsafe/_speedups.c:53:1: note: returning markupsafe/_speedups.c:53:1: note: found 24 similar trace(s) to this markupsafe/_speedups.c:37:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10472].str) at markupsafe/_speedups.c:37 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:37:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['>'] = UNICHR(">"); markupsafe/_speedups.c:36:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10470].str) at markupsafe/_speedups.c:36 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:35:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10468].str) at markupsafe/_speedups.c:35 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:34:29: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10466].str) at markupsafe/_speedups.c:34 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:33:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10464].str) at markupsafe/_speedups.c:33 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:30:1: note: graphical error report for function 'init_constants' written out to 'build/temp.linux-x86_64-3.2/markupsafe/_speedups.c.init_constants-refcount-errors.html' gcc -pthread -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic build/temp.linux-x86_64-3.2/markupsafe/_speedups.o -L/usr/lib64 -lpython3.2mu -o build/lib.linux-x86_64-3.2/markupsafe/_speedups.cpython-32mu.so + popd + exit 0 ~/build/BUILD/MarkupSafe-0.11 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tUt3Lp + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 ++ dirname /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 + cd MarkupSafe-0.11 + LANG=C + export LANG + unset DISPLAY + rm -rf /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 + /usr/bin/python setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64 creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7 creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe copying build/lib.linux-x86_64-2.7/markupsafe/_constants.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe copying build/lib.linux-x86_64-2.7/markupsafe/_native.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe copying build/lib.linux-x86_64-2.7/markupsafe/__init__.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe copying build/lib.linux-x86_64-2.7/markupsafe/_speedups.so -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe copying build/lib.linux-x86_64-2.7/markupsafe/_speedups.c -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe copying build/lib.linux-x86_64-2.7/markupsafe/tests.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe/_constants.py to _constants.pyc byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe/_native.py to _native.pyc byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe/tests.py to tests.pyc writing byte-compilation script '/tmp/tmp8gozb0.py' /usr/bin/python -O /tmp/tmp8gozb0.py removing /tmp/tmp8gozb0.py running install_egg_info running egg_info writing MarkupSafe.egg-info/PKG-INFO writing top-level names to MarkupSafe.egg-info/top_level.txt writing dependency_links to MarkupSafe.egg-info/dependency_links.txt reading manifest file 'MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MarkupSafe.egg-info/SOURCES.txt' Copying MarkupSafe.egg-info to /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/MarkupSafe-0.11-py2.7.egg-info running install_scripts + rm /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64//usr/lib64/python2.7/site-packages/markupsafe/_speedups.c + pushd /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16 ~/build/BUILD/python3-python-markupsafe-0.11-4.fc16 ~/build/BUILD/MarkupSafe-0.11 + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2 creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages creating /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe copying build/lib.linux-x86_64-3.2/markupsafe/_constants.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe copying build/lib.linux-x86_64-3.2/markupsafe/_native.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe copying build/lib.linux-x86_64-3.2/markupsafe/__init__.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe copying build/lib.linux-x86_64-3.2/markupsafe/_speedups.c -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe copying build/lib.linux-x86_64-3.2/markupsafe/_speedups.cpython-32mu.so -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe copying build/lib.linux-x86_64-3.2/markupsafe/tests.py -> /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe/_constants.py to _constants.pyc byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe/_native.py to _native.pyc byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe/tests.py to tests.pyc writing byte-compilation script '/tmp/tmpqai3a0.py' /usr/bin/python3 -O /tmp/tmpqai3a0.py removing /tmp/tmpqai3a0.py running install_egg_info running egg_info writing MarkupSafe.egg-info/PKG-INFO writing top-level names to MarkupSafe.egg-info/top_level.txt writing dependency_links to MarkupSafe.egg-info/dependency_links.txt reading manifest file 'MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MarkupSafe.egg-info/SOURCES.txt' Copying MarkupSafe.egg-info to /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/MarkupSafe-0.11-py3.2.egg-info running install_scripts + rm /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64//usr/lib64/python3.2/site-packages/markupsafe/_speedups.c + popd ~/build/BUILD/MarkupSafe-0.11 + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /builddir/build/BUILD/MarkupSafe-0.11 extracting debug info from /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/site-packages/markupsafe/_speedups.so extracting debug info from /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/site-packages/markupsafe/_speedups.cpython-32mu.so 23 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python2.7/ using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/lib64/python3.2/ using /usr/bin/python3.2 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.pNtRgA + umask 022 + cd /builddir/build/BUILD + cd MarkupSafe-0.11 + unset DISPLAY + /usr/bin/python setup.py test running test running egg_info writing MarkupSafe.egg-info/PKG-INFO writing top-level names to MarkupSafe.egg-info/top_level.txt writing dependency_links to MarkupSafe.egg-info/dependency_links.txt reading manifest file 'MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MarkupSafe.egg-info/SOURCES.txt' running build_ext building 'markupsafe._speedups' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o markupsafe/_speedups.c: In function 'escape': markupsafe/_speedups.c:157:2: warning: dereferencing NULL (s->ob_refcnt) at markupsafe/_speedups.c:157 [enabled by default] markupsafe/_speedups.c:123:5: note: taking False path at: if (PyLong_CheckExact(text) || markupsafe/_speedups.c:125:6: note: reaching: PyInt_CheckExact(text) || markupsafe/_speedups.c:123:30: note: taking False path at: if (PyLong_CheckExact(text) || markupsafe/_speedups.c:127:6: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:125:29: note: taking False path at: PyInt_CheckExact(text) || markupsafe/_speedups.c:127:34: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:31: note: taking False path at: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:53: note: reaching: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:127:53: note: taking False path at: PyFloat_CheckExact(text) || PyBool_Check(text) || markupsafe/_speedups.c:132:7: note: reaching: html = PyObject_GetAttrString(text, "__html__"); markupsafe/_speedups.c:132:7: note: when PyObject_GetAttrString() fails at: html = PyObject_GetAttrString(text, "__html__"); markupsafe/_speedups.c:133:5: note: taking False path at: if (html) { markupsafe/_speedups.c:140:13: note: reaching: PyErr_Clear(); markupsafe/_speedups.c:140:13: note: calling PyErr_Clear() at: PyErr_Clear(); markupsafe/_speedups.c:141:5: note: when considering value == (long int)0 from markupsafe/_speedups.c:141 at: if (!PyUnicode_Check(text)) { markupsafe/_speedups.c:141:5: note: taking True path at: if (!PyUnicode_Check(text)) { markupsafe/_speedups.c:143:13: note: reaching: PyObject *unicode = PyObject_Unicode(text); markupsafe/_speedups.c:143:13: note: when PyObject_Unicode() succeeds at: PyObject *unicode = PyObject_Unicode(text); markupsafe/_speedups.c:147:6: note: taking False path at: if (!unicode) markupsafe/_speedups.c:149:5: note: reaching: s = escape_unicode((PyUnicodeObject*)unicode); markupsafe/_speedups.c:149:5: note: when escape_unicode() fails at: s = escape_unicode((PyUnicodeObject*)unicode); markupsafe/_speedups.c:150:3: note: when taking True path at: Py_DECREF(unicode); markupsafe/_speedups.c:156:35: note: reaching: rv = PyObject_CallFunctionObjArgs(markup, (PyObject*)s, NULL); markupsafe/_speedups.c:156:5: note: when PyObject_CallFunctionObjArgs() succeeds at: rv = PyObject_CallFunctionObjArgs(markup, (PyObject*)s, NULL); markupsafe/_speedups.c:157:2: note: found 5 similar trace(s) to this markupsafe/_speedups.c:119:1: note: graphical error report for function 'escape' written out to 'build/temp.linux-x86_64-2.7/markupsafe/_speedups.c.escape-refcount-errors.html' markupsafe/_speedups.c: In function 'init_constants': markupsafe/_speedups.c:53:1: warning: ob_refcnt of new ref from (unknown) PyUnicodeUCS4_DecodeASCII is 1 too high [enabled by default] markupsafe/_speedups.c:53:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) markupsafe/_speedups.c:53:1: note: but final ob_refcnt is N + 1 markupsafe/_speedups.c:33:28: note: new ref from (unknown) PyUnicodeUCS4_DecodeASCII allocated at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:33:28: note: ob_refcnt is now refs: 1 + N where N >= 0 markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:37:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['>'] = UNICHR(">"); markupsafe/_speedups.c:46:9: note: when PyImport_ImportModule() succeeds at: module = PyImport_ImportModule("markupsafe"); markupsafe/_speedups.c:47:5: note: taking False path at: if (!module) markupsafe/_speedups.c:49:33: note: reaching: markup = PyObject_GetAttrString(module, "Markup"); markupsafe/_speedups.c:49:33: note: when PyObject_GetAttrString() succeeds at: markup = PyObject_GetAttrString(module, "Markup"); markupsafe/_speedups.c:50:2: note: when taking True path at: Py_DECREF(module); markupsafe/_speedups.c:52:2: note: reaching: return 1; markupsafe/_speedups.c:53:1: note: returning markupsafe/_speedups.c:53:1: note: found 24 similar trace(s) to this markupsafe/_speedups.c:37:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10355].str) at markupsafe/_speedups.c:37 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:37:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['>'] = UNICHR(">"); markupsafe/_speedups.c:36:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10353].str) at markupsafe/_speedups.c:36 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:36:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['<'] = UNICHR("<"); markupsafe/_speedups.c:35:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10351].str) at markupsafe/_speedups.c:35 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:35:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['&'] = UNICHR("&"); markupsafe/_speedups.c:34:29: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10349].str) at markupsafe/_speedups.c:34 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() succeeds at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:34:29: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['\''] = UNICHR("'"); markupsafe/_speedups.c:33:28: warning: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10347].str) at markupsafe/_speedups.c:33 [enabled by default] markupsafe/_speedups.c:33:28: note: when PyUnicodeUCS4_DecodeASCII() fails at: escaped_chars_repl['"'] = UNICHR("""); markupsafe/_speedups.c:30:1: note: graphical error report for function 'init_constants' written out to 'build/temp.linux-x86_64-2.7/markupsafe/_speedups.c.init_constants-refcount-errors.html' gcc -pthread -shared build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -L/usr/lib64 -lpython2.7 -o /builddir/build/BUILD/MarkupSafe-0.11/markupsafe/_speedups.so test_all_set (markupsafe.tests.MarkupTestCase) ... ok test_escape_silent (markupsafe.tests.MarkupTestCase) ... ok test_markup_operations (markupsafe.tests.MarkupTestCase) ... ok test_markup_leaks (markupsafe.tests.MarkupLeakTestCase) ... ok ---------------------------------------------------------------------- Ran 4 tests in 0.197s OK + pushd /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16 ~/build/BUILD/python3-python-markupsafe-0.11-4.fc16 ~/build/BUILD/MarkupSafe-0.11 + /usr/bin/python3 setup.py test running test running build_py running egg_info writing MarkupSafe.egg-info/PKG-INFO writing top-level names to MarkupSafe.egg-info/top_level.txt writing dependency_links to MarkupSafe.egg-info/dependency_links.txt reading manifest file 'MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'MarkupSafe.egg-info/SOURCES.txt' running egg_info creating /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info writing /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info/PKG-INFO writing top-level names to /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info/top_level.txt writing dependency_links to /builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info/dependency_links.txt writing manifest file '/builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file '/builddir/build/BUILD/python3-python-markupsafe-0.11-4.fc16/build/lib.linux-x86_64-3.2/MarkupSafe.egg-info/SOURCES.txt' running build_ext test_all_set (markupsafe.tests.MarkupTestCase) ... ok test_escape_silent (markupsafe.tests.MarkupTestCase) ... ok test_markup_operations (markupsafe.tests.MarkupTestCase) ... ok test_markup_leaks (markupsafe.tests.MarkupLeakTestCase) ... ok ---------------------------------------------------------------------- Ran 4 tests in 0.186s OK + popd + exit 0 ~/build/BUILD/MarkupSafe-0.11 Processing files: python-markupsafe-0.11-4.fc16.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.t2RrCR + umask 022 + cd /builddir/build/BUILD + cd MarkupSafe-0.11 + DOCDIR=/builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/share/doc/python-markupsafe-0.11 + export DOCDIR + /bin/mkdir -p /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/share/doc/python-markupsafe-0.11 + cp -pr AUTHORS LICENSE README.rst /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/share/doc/python-markupsafe-0.11 + exit 0 Provides: _speedups.so()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpython2.7.so.1.0()(64bit) python(abi) = 2.7 rtld(GNU_HASH) Processing files: python3-markupsafe-0.11-4.fc16.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ABX1l9 Provides: _speedups.cpython-32mu.so()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpython3.2mu.so.1.0()(64bit) python(abi) = 3.2 rtld(GNU_HASH) Processing files: python-markupsafe-debuginfo-0.11-4.fc16.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 Wrote: /builddir/build/RPMS/python-markupsafe-0.11-4.fc16.x86_64.rpm Wrote: /builddir/build/RPMS/python3-markupsafe-0.11-4.fc16.x86_64.rpm Wrote: /builddir/build/RPMS/python-markupsafe-debuginfo-0.11-4.fc16.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Ap7Khl + umask 022 + cd /builddir/build/BUILD + cd MarkupSafe-0.11 + DOCDIR=/builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/share/doc/python3-markupsafe-0.11 + export DOCDIR + /bin/mkdir -p /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/share/doc/python3-markupsafe-0.11 + cp -pr AUTHORS LICENSE README.rst /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64/usr/share/doc/python3-markupsafe-0.11 + exit 0 + umask 022 + cd /builddir/build/BUILD + cd MarkupSafe-0.11 + rm -rf /builddir/build/BUILDROOT/python-markupsafe-0.11-4.fc16.x86_64 + exit 0 Child returncode was: 0 LEAVE do -->