File: 0001-Fix-for-msgpack-1.0.0.patch

package info (click to toggle)
python-fluent-logger 0.9.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 228 kB
  • sloc: python: 1,776; sh: 10; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Remove encoding parameter which is (default UTF-8) removed with msgpack >= 1.0.0
Author: Nilesh Patra <npatra974@gmail.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=973215
Forwarded: https://github.com/fluent/fluent-logger-python/pull/171
Last-Update: 2020-11-19
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@
   long_description=open(README).read(),
   package_dir={'fluent': 'fluent'},
   packages=['fluent'],
-  install_requires=['msgpack<1.0.0'],
+  install_requires=['msgpack>=1.0.0'],
   author='Kazuki Ohta',
   author_email='kazuki.ohta@gmail.com',
   url='https://github.com/fluent/fluent-logger-python',
--- a/tests/mockserver.py
+++ b/tests/mockserver.py
@@ -68,7 +68,7 @@
         self._buf.seek(0)
         # TODO: have to process string encoding properly. currently we assume
         # that all encoding is utf-8.
-        return list(Unpacker(self._buf, encoding='utf-8'))
+        return list(Unpacker(self._buf))
 
     def close(self):