Commit 401f3917 authored by Jérome Perrin's avatar Jérome Perrin

WIP py >= 3.9

( was it OK on 3.7 ? )
parent 943a005d
This diff is collapsed.
...@@ -3,7 +3,7 @@ import sys ...@@ -3,7 +3,7 @@ import sys
import json import json
import bz2 import bz2
import gzip import gzip
from StringIO import StringIO from io import BytesIO, StringIO
import tempfile import tempfile
import apachedex import apachedex
from . import lzma from . import lzma
...@@ -86,7 +86,7 @@ class TestBzip2Encoding(ApacheDEXTestCase, EncodedInputTestMixin): ...@@ -86,7 +86,7 @@ class TestBzip2Encoding(ApacheDEXTestCase, EncodedInputTestMixin):
class TestZlibEncoding(ApacheDEXTestCase, EncodedInputTestMixin): class TestZlibEncoding(ApacheDEXTestCase, EncodedInputTestMixin):
def _getInputData(self): def _getInputData(self):
f = StringIO() f = BytesIO()
with gzip.GzipFile(mode="w", fileobj=f) as gzfile: with gzip.GzipFile(mode="w", fileobj=f) as gzfile:
gzfile.write(self.DEFAULT_LINE) gzfile.write(self.DEFAULT_LINE)
return f.getvalue() return f.getvalue()
......
...@@ -64,7 +64,7 @@ setup( ...@@ -64,7 +64,7 @@ setup(
long_description=".. contents::\n\n" + description, long_description=".. contents::\n\n" + description,
author='Vincent Pelletier', author='Vincent Pelletier',
author_email='vincent@nexedi.com', author_email='vincent@nexedi.com',
url='http://git.erp5.org/gitweb/apachedex.git', url='https://lab.nexedi.com/nexedi/apachedex.git',
license='GPL 2+', license='GPL 2+',
platforms=['any'], platforms=['any'],
classifiers=[ classifiers=[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment