Inada Naoki
33e0e86f4e
Cleanup code and pyproject ( #608 )
...
* use isort
* fallback: use BytesIO instead of StringIO. We had dropped Python 2
already.
2024-05-06 11:46:31 +09:00
TW
423c6df265
move project metadata to pyproject.toml ( #555 )
...
also: replace flake8 by ruff.
2023-09-05 10:51:04 +09:00
Evgeny Markov
c8d0751fe3
Drop Python 3.6 support ( #543 )
...
The following steps have been taken:
1. Black was updated to latest version. The code has been formatted with
the new version.
2. The pyupgrade utility is installed. This helped to remove all the
code that was needed to support Python < 3.7.
Fix #541 .
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2023-05-24 01:41:08 +09:00
Inada Naoki
d8e3cf0563
Make strict_map_key default to True ( #392 )
2019-12-06 22:23:15 +09:00
Inada Naoki
10e5e39ff9
blacken test
2019-12-05 18:51:45 +09:00
Wouter Bolsterlee
77046b839d
Always raise TypeError for wrong argument types
...
The code that checks whether hooks are callable() (and some other type
checks) should always raise TypeError on failure. Before this change,
both ValueError and TypeError were used in an inconsistent way (C
extension and Python implementation were not the same).
2014-02-11 20:42:58 +01:00
INADA Naoki
822cce823c
Support unpacking new types.
2013-10-20 22:59:27 +09:00
INADA Naoki
593c832ab0
Use py.test instead of nosetests.
2012-12-29 11:24:25 +09:00
INADA Naoki
d796d696d1
revert unwanted changes.
2012-12-22 13:09:35 +09:00
INADA Naoki
833b85f173
Merge branch '0.2-maint' ( fix #39 )
2012-12-22 13:08:46 +09:00
INADA Naoki
3478406537
Fix tests.
2012-12-11 02:46:13 +09:00
Alexei Romanoff
cf89f18be7
segfault fixed when data is unpacked using list_hook
,
...
this bug is a twin to #28 .
Unit-test is also attached.
2012-10-12 13:19:53 +03:00
Alexei Romanoff
4ea952f39d
Added unit-test for issue https://github.com/msgpack/msgpack-python/issues/28
2012-10-12 12:34:18 +03:00
INADA Naoki
477d3b152f
Fix warnings.
2012-09-24 03:08:13 +09:00
INADA Naoki
e381032641
Support object_pairs_hook
...
Merge remote-tracking branch 'jnothman/object_pairs_hook' into 0.2-maint
Conflicts:
msgpack/_msgpack.pyx
test/test_pack.py
test/test_sequnpack.py
2012-09-24 03:05:39 +09:00
INADA Naoki
c280e58988
Fix warnings in tests.
2012-09-24 02:39:02 +09:00
Joel Nothman
77942514db
Implement object_pairs_hook
2012-09-23 19:37:28 +10:00
INADA Naoki
2122b46b84
Fix using deprecated api in tests.
2012-07-04 14:58:36 +09:00
INADA Naoki
0b38e86534
unify tests for py2 and py3
2012-06-19 13:55:14 +09:00
INADA Naoki
3aaf5f5a7a
python: Fix segmentation fault when default
returns it's argument.
2011-01-29 23:22:41 +09:00
INADA Naoki
3d8978417a
Add list_hook option to unpacker.
2010-10-26 02:09:52 +09:00
INADA Naoki
0076d42a0d
Add check for recursion limit and default hook result.
2010-10-26 01:49:00 +09:00
INADA Naoki
fa157082ac
Add object_hook
option to unpack and default
option to pack.
...
(see simplejson for how to use).
2010-10-26 01:26:06 +09:00