Skip to content

Commit

Permalink
Avoid leaking the 'math' import into the module dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder authored and haxtibal committed Feb 13, 2022
1 parent 8ec5e37 commit 480daf1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lxml/objectify.pyx
Expand Up @@ -38,9 +38,8 @@ import_lxml__etree()

__version__ = etree.__version__

import math
cdef object _float_is_inf = math.isinf
cdef object _float_is_nan = math.isnan
cdef object _float_is_inf, _float_is_nan
from math import isinf as _float_is_inf, isnan as _float_is_nan

cdef object re
import re
Expand Down

0 comments on commit 480daf1

Please sign in to comment.