Skip to content

Commit 67b0052

Browse files
committed
Change schema.Parse to all lower case
1 parent c32cd12 commit 67b0052

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/confluent_kafka/avro/load.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
def loads(schema_str):
2424
""" Parse a schema given a schema string """
2525
try:
26-
if sys.version_info[0] < 3:
27-
return schema.parse(schema_str)
28-
else:
29-
return schema.Parse(schema_str)
26+
return schema.parse(schema_str)
3027
except schema.SchemaParseException as e:
3128
raise ClientError("Schema parse failed: %s" % (str(e)))
3229

0 commit comments

Comments
 (0)