remove python 2 style class definitions
MODIFY
fastavro/_read_py.py
fastavro/_read_py.py
@@ -815,7 +815,7 @@ class Block:
)
-class file_reader(object):
+class file_reader:
def __init__(self, fo_or_decoder, reader_schema=None, return_record_name=False):
if isinstance(fo_or_decoder, AvroJSONDecoder):
self.decoder = fo_or_decoder

MODIFY
fastavro/_write.pyx
fastavro/_write.pyx
@@ -516,7 +516,7 @@ if BLOCK_WRITERS.get("lz4") is None:
BLOCK_WRITERS["lz4"] = lz4_write_block
-cdef class MemoryIO(object):
+cdef class MemoryIO:
cdef bytearray value
def __init__(self):
@@ -532,7 +532,7 @@ cdef class MemoryIO(object):
self.value[:] = b""
-cdef class Writer(object):
+cdef class Writer:
cdef public object fo
cdef public object schema
cdef public object validate_fn

MODIFY
fastavro/_write_py.py
fastavro/_write_py.py
@@ -355,7 +355,7 @@ else:
BLOCK_WRITERS["lz4"] = lz4_write_block
-class GenericWriter(object):
+class GenericWriter:
def __init__(self, schema, metadata=None, validator=None):
self._named_schemas = {}
self.schema = parse_schema(schema, _named_schemas=self._named_schemas)

MODIFY
fastavro/io/json_decoder.py
fastavro/io/json_decoder.py
@@ -27,7 +27,7 @@ from .symbols import (
)
-class AvroJSONDecoder(object):
+class AvroJSONDecoder:
"""Decoder for the avro JSON format.
NOTE: All attributes and methods on this class should be considered

MODIFY
fastavro/io/json_encoder.py
fastavro/io/json_encoder.py
@@ -28,7 +28,7 @@ from .symbols import (
)
-class AvroJSONEncoder(object):
+class AvroJSONEncoder:
"""Encoder for the avro JSON format.
NOTE: All attributes and methods on this class should be considered

MODIFY
tests/test_fastavro.py
tests/test_fastavro.py
@@ -39,7 +39,7 @@ def roundtrip(schema, records, **reader_kwargs):
return new_records
-class NoSeekBytesIO(object):
+class NoSeekBytesIO:
"""Shim around BytesIO which blocks access to everything but read.
Used to ensure seek and tell API isn't being depended on."""

remove python 2 style class definitions