MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / _parenthesize

Function _parenthesize

scripts/kconfig/kconfiglib.py:6447–6452  ·  view source on GitHub ↗
(expr, type_, sc_expr_str_fn)

Source from the content-addressed store, hash-verified

6445
6446
6447def _parenthesize(expr, type_, sc_expr_str_fn):
6448 # expr_str() helper. Adds parentheses around expressions of type 'type_'.
6449
6450 if expr.__class__ is tuple and expr[0] is type_:
6451 return "({})".format(expr_str(expr, sc_expr_str_fn))
6452 return expr_str(expr, sc_expr_str_fn)
6453
6454
6455def _ordered_unique(lst):

Callers 1

expr_strFunction · 0.85

Calls 1

expr_strFunction · 0.85

Tested by

no test coverage detected