Skip to content

Commit

Permalink
[svn r4130] r5087@delle: sbehnel | 2009-03-02 14:04:13 +0100
Browse files Browse the repository at this point in the history
 cleanup

--HG--
branch : trunk
  • Loading branch information
scoder committed Mar 2, 2009
1 parent 7af114a commit 2d1afec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lxml/parser.pxi
Expand Up @@ -151,15 +151,11 @@ cdef class _ParserDictionaryContext:
schema and xinclude external references."""
cdef _ParserDictionaryContext context
cdef _ParserContext implied_context
cdef Py_ssize_t count

# see if we have a current implied parser
context = self._findThreadParserContext()
count = python.PyList_GET_SIZE(context._implied_parser_contexts)
if count != 0:
implied_context = python.PyList_GET_ITEM(
context._implied_parser_contexts, count - 1)
python.Py_INCREF(implied_context) # borrowed reference
if python.PyList_GET_SIZE(context._implied_parser_contexts):
implied_context = context._implied_parser_contexts[-1]
return implied_context
return None

Expand Down

0 comments on commit 2d1afec

Please sign in to comment.