Commit graph

15 commits

Author SHA1 Message Date
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
sblondon
feec06206c
Drop python2 support (#519)
The PR removes python2 references and cases.

Close #518

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2023-05-21 16:26:39 +09:00
Inada Naoki
10e5e39ff9 blacken test 2019-12-05 18:51:45 +09:00
Inada Naoki
464fe277e1 Remove pytest warnings 2019-01-25 20:52:57 +09:00
TW
e3fea94509 fix typos and other cosmetic issues (#214)
cosmetic issues:
- reST headlines' underline length needs to match the headline length
  (looks like somebody is / was using a proportional font)
- Cython code lines do not need to be terminated with a semicolon
- always use triple-double-quotes for docstrings
2017-01-11 12:04:23 +09:00
Pramukta Kumar
2d05b40b03 Test to demonstrate that the default function isn't always called (#133) 2015-03-17 15:02:40 -04:00
INADA Naoki
96bcd76f49 Packing ExtType and some cleanup 2013-10-20 20:28:32 +09:00
INADA Naoki
aa68c9b833 fallback: Support pack_ext_type. 2013-10-20 15:40:20 +09:00
Antonio Cuni
56dd1650a4 implement unpacking for all the fixtext formats 2013-10-19 17:27:16 +02:00
Antonio Cuni
985d4c1496 add a test for unpacking extended types 2013-10-19 11:34:28 +02:00
Antonio Cuni
5467515065 implement Packer.pack_extended_type also in the cython version of the code 2013-10-18 17:33:54 +02:00
Antonio Cuni
c727440ba5 automatically find the best format to encode extended types 2013-10-18 15:45:50 +02:00
Antonio Cuni
522c4bfc79 slightly change to API 2013-10-18 15:03:58 +02:00
Antonio Cuni
5529dfe596 kill some duplicate code from unpack/unpackb and move the logic to Unpacker.unpack_one. By doing this we no longer need to make the module-level pack/unpack parametric on the class, because they contain no logic at all 2013-10-18 14:38:52 +02:00
Antonio Cuni
d61097511a add support for extended types: you can now pack/unpack custom python objects by subclassing Packer and Unpacker 2013-10-15 16:59:43 +02:00