MCPcopy Create free account
hub / github.com/numpy/numpy / _fix_args

Function _fix_args

numpy/distutils/log.py:11–16  ·  view source on GitHub ↗
(args,flag=1)

Source from the content-addressed store, hash-verified

9
10
11def _fix_args(args,flag=1):
12 if is_string(args):
13 return args.replace('%', '%%')
14 if flag and is_sequence(args):
15 return tuple([_fix_args(a, flag=0) for a in args])
16 return args
17
18
19class Log(old_Log):

Callers 2

_logMethod · 0.85
goodMethod · 0.85

Calls 3

is_stringFunction · 0.90
is_sequenceFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected