Skip to content

Commit

Permalink
Remove line continuation chars
Browse files Browse the repository at this point in the history
  • Loading branch information
robbmcleod committed Jul 13, 2018
1 parent 422de13 commit f9ab642
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions numexpr/necompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,7 @@ def getContext(kwargs, frame_depth=1):
raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0])
if context['truediv'] == 'auto':
caller_globals = sys._getframe(frame_depth + 1).f_globals
context['truediv'] = \
caller_globals.get('division', None) == __future__.division
context['truediv'] = caller_globals.get('division', None) == __future__.division

return context

Expand Down Expand Up @@ -624,8 +623,7 @@ def NumExpr(ex, signature=(), **kwargs):
# translated to either True or False).

context = getContext(kwargs, frame_depth=1)
threeAddrProgram, inputsig, tempsig, constants, input_names = \
precompile(ex, signature, context)
threeAddrProgram, inputsig, tempsig, constants, input_names = precompile(ex, signature, context)
program = compileThreeAddrForm(threeAddrProgram)
return interpreter.NumExpr(inputsig.encode('ascii'),
tempsig.encode('ascii'),
Expand Down Expand Up @@ -812,8 +810,7 @@ def evaluate(ex, local_dict=None, global_dict=None,
try:
compiled_ex = _numexpr_cache[numexpr_key]
except KeyError:
compiled_ex = _numexpr_cache[numexpr_key] = \
NumExpr(ex, signature, **context)
compiled_ex = _numexpr_cache[numexpr_key] = NumExpr(ex, signature, **context)
kwargs = {'out': out, 'order': order, 'casting': casting,
'ex_uses_vml': ex_uses_vml}
_numexpr_last = dict(ex=compiled_ex, argnames=names, kwargs=kwargs)
Expand Down

0 comments on commit f9ab642

Please sign in to comment.