Skip to content

Commit f7eb5b2

Browse files
committed
pre-commit run --all-files
1 parent ac404de commit f7eb5b2

File tree

7 files changed

+6
-12
lines changed

7 files changed

+6
-12
lines changed

.coveragerc

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[run]
22
source = .
33
omit = serialize/testsuite/*
4-

CHANGES

-2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ Serialize Changelog
4242
- Added support for pickle using https://docs.python.org/3/library/pickle.html
4343
- Added support for serpent using https://pypi.python.org/pypi/serpent
4444
- Added support for yaml using https://pypi.python.org/pypi/pyyaml
45-
46-

serialize/all.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def register_format(
225225
):
226226
"""Register an available serialization format.
227227
228-
`fmt` is a unique string identifying the format, such as `json`. Use a colon (`:`) to
229-
separate between subformats.
228+
`fmt` is a unique string identifying the format, such as `json`. Use a colon (`:`)
229+
to separate between subformats.
230230
231231
`dumpser` and `dumper` should be callables with the same purpose and arguments
232232
that `json.dumps` and `json.dump`. If one of those is missing, it will be
@@ -236,9 +236,9 @@ def register_format(
236236
that `json.loads` and `json.load`. If one of those is missing, it will be
237237
generated automatically from the other.
238238
239-
`extension` is the file extension used to guess the desired serialization format when loading
240-
from or dumping to a file. If not given, the part before the colon of `fmt` will be used.
241-
If `None`, the format will not be associated with any extension.
239+
`extension` is the file extension used to guess the desired serialization format
240+
when loading from or dumping to a file. If not given, the part before the colon of
241+
`fmt` will be used. If `None`, the format will not be associated with any extension.
242242
243243
`register_class` is a callback made when a class is registered with
244244
`serialize.register_class`. When a new format is registered,

serialize/dill.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222

2323
class MyPickler(dill.Pickler):
24-
2524
dispatch_table = pickle.DispatchTable()
2625

2726

serialize/pickle.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def __len__(self): # pragma: no cover
5050

5151

5252
class MyPickler(pickle.Pickler):
53-
5453
dispatch_table = DispatchTable()
5554

5655

serialize/testsuite/test_basic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def __reduce__(self):
227227
GLOBAL_X = Reduce_string()
228228
GLOBAL_Y = Reduce_string()
229229

230-
OBJECT_STATE = ("This", "Is", 2, "Object", u"State")
230+
OBJECT_STATE = ("This", "Is", 2, "Object", "State")
231231
OBJECT_MEMBERS = ("These", "are", ("object", "members"))
232232

233233

serialize/yaml_legacy.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def represent_data(self, data):
2828

2929
class Loader(yaml.Loader):
3030
def construct_object(self, node, deep=False):
31-
3231
# It seems that pyyaml is changing the internal structure of the node
3332
tmp = super().construct_object(node, deep)
3433

0 commit comments

Comments
 (0)