Skip to content

Commit

Permalink
Merge pull request #1006 from casperlehmann/master
Browse files Browse the repository at this point in the history
Change schema.Parse to all lower case
  • Loading branch information
Matt Howlett committed Mar 9, 2021
2 parents bd4baf5 + 67b0052 commit 67d4fb4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/confluent_kafka/avro/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
def loads(schema_str):
""" Parse a schema given a schema string """
try:
if sys.version_info[0] < 3:
return schema.parse(schema_str)
else:
return schema.Parse(schema_str)
return schema.parse(schema_str)
except schema.SchemaParseException as e:
raise ClientError("Schema parse failed: %s" % (str(e)))

Expand Down

0 comments on commit 67d4fb4

Please sign in to comment.