Skip to content

Commit cc13b69

Browse files
committed
Remove debugging code and add EOLs
1 parent d31100c commit cc13b69

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/google/protobuf/internal/decoder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ def _DecodeUnknownField(buffer, pos, wire_type, current_depth=0):
10301030
data = buffer[pos:pos+size].tobytes()
10311031
pos += size
10321032
elif wire_type == wire_format.WIRETYPE_START_GROUP:
1033-
print("MMP " + str(current_depth))
10341033
current_depth += 1
10351034
if current_depth >= _recursion_limit:
10361035
raise _DecodeError('Error parsing message: too many levels of nesting.')

python/google/protobuf/internal/decoder_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ def test_decode_unknown_group_field_too_many_levels(self):
3030
)
3131

3232
if __name__ == '__main__':
33-
unittest.main()
33+
unittest.main()
34+

python/google/protobuf/internal/self_recursive.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ message SelfRecursive {
1414
optional RecursiveGroup sub_group = 2;
1515
optional int32 i = 3;
1616
};
17-
}
17+
}

0 commit comments

Comments
 (0)