Skip to content

Commit b1eaf8e

Browse files
praetorian20iMichka
authored andcommitted
Typo fixes
undname_creator_t.format_argtypes contained an undefined variable 'type_'. Comment spelling fix in scanner.py Cherry-picked from the develop branch
1 parent f6d5984 commit b1eaf8e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pygccxml/binary_parsers/undname.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ def format_argtypes(self, argtypes, hint):
187187
# ugly hack, later, I will replace ', ' with ',', so single
188188
# space will still exist
189189
argsep = ', '
190-
return argsep.join(map(self.__format_type_as_undecorated(
191-
type_, True, hint), argtypes))
190+
return argsep.join(
191+
map(lambda type_: \
192+
self.__format_type_as_undecorated(type_, True, hint), argtypes))
192193

193194
def format_calldef(self, calldef, hint):
194195
calldef_type = calldef.function_type()

pygccxml/parser/scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def __read_variable(self, attrs):
533533
self.__read_byte_offset(decl, attrs)
534534
return decl
535535

536-
__read_field = __read_variable # just a synonim
536+
__read_field = __read_variable # just a synonym
537537

538538
def __read_class_impl(self, class_type, attrs):
539539
name = attrs.get(XML_AN_NAME, '')

0 commit comments

Comments
 (0)