Skip to content

Commit f5a7faa

Browse files
committed
fix typo in Function::_unformat_data()
Unused datastr variable looks like a typo. Replace sig with datastr. Fixes: 345cd37 (bpo-36876: Fix the C analyzer tool. (GH-22841)) Signed-off-by: Elizaveta Tereshkina <teryoshkina.ea@gmail.com>
1 parent 07a555d commit f5a7faa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/c-analyzer/c_parser/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,11 +1062,11 @@ def _format_data(cls, fmt, data, extra):
10621062
@classmethod
10631063
def _unformat_data(cls, datastr, fmt=None):
10641064
if fmt in ('line', 'brief'):
1065-
sig, storage = Signature.from_str(sig)
1065+
sig, storage = Signature.from_str(datastr)
10661066
return sig, {'storage': storage}
10671067
#elif fmt == 'full':
10681068
elif fmt == 'row':
1069-
sig, storage = Signature.from_str(sig)
1069+
sig, storage = Signature.from_str(datastr)
10701070
return sig, {'storage': storage}
10711071
else:
10721072
raise NotImplementedError(fmt)

0 commit comments

Comments
 (0)