Skip to content

Commit 50b7b40

Browse files
kloczekmvantellingen
authored andcommitted
drop python<=3.7 support
According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023. Filter all code over `pyupgracde --py38-plus`. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
1 parent 36f9c96 commit 50b7b40

25 files changed

Lines changed: 46 additions & 74 deletions

docs/conf.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# Zeep documentation build configuration file, created by
43
# sphinx-quickstart on Fri Mar 4 16:51:06 2016.
@@ -52,9 +51,9 @@
5251
master_doc = 'index'
5352

5453
# General information about the project.
55-
project = u'Zeep'
56-
copyright = u'2016, <a href="https://www.mvantellingen.nl/">Michael van Tellingen</a>'
57-
author = u'Michael van Tellingen'
54+
project = 'Zeep'
55+
copyright = '2016, <a href="https://www.mvantellingen.nl/">Michael van Tellingen</a>'
56+
author = 'Michael van Tellingen'
5857

5958

6059
# The version info for the project you're documenting, acts as replacement for
@@ -249,8 +248,8 @@
249248
# (source start file, target name, title,
250249
# author, documentclass [howto, manual, or own class]).
251250
latex_documents = [
252-
(master_doc, 'Zeep.tex', u'Zeep Documentation',
253-
u'Michael van Tellingen', 'manual'),
251+
(master_doc, 'Zeep.tex', 'Zeep Documentation',
252+
'Michael van Tellingen', 'manual'),
254253
]
255254

256255
# The name of an image file (relative to this directory) to place at the top of
@@ -293,7 +292,7 @@
293292
# (source start file, target name, title, author,
294293
# dir menu entry, description, category)
295294
texinfo_documents = [
296-
(master_doc, 'Zeep', u'Zeep Documentation',
295+
(master_doc, 'Zeep', 'Zeep Documentation',
297296
author, 'Zeep', 'One line description of project.',
298297
'Miscellaneous'),
299298
]

examples/code39.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import zeep
32

43
client = zeep.Client(

examples/eu_vat_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import zeep
32

43

examples/http_basic_auth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
from requests import Session
42
from requests.auth import HTTPBasicAuth
53

examples/km_to_miles.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import zeep
32

43

examples/soap_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ExampleService(ServiceBase):
2121
@rpc(Unicode, _returns=Unicode)
2222
def slow_request(ctx, request_id):
2323
time.sleep(1)
24-
return u'Request: %s' % request_id
24+
return 'Request: %s' % request_id
2525

2626
application = Application(
2727
services=[ExampleService],

src/zeep/__main__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, print_function
2-
31
import argparse
42
import logging
53
import logging.config

src/zeep/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class IncompleteOperation(Error):
9595

9696
class DTDForbidden(Error):
9797
def __init__(self, name, sysid, pubid):
98-
super(DTDForbidden, self).__init__()
98+
super().__init__()
9999
self.name = name
100100
self.sysid = sysid
101101
self.pubid = pubid
@@ -107,7 +107,7 @@ def __str__(self):
107107

108108
class EntitiesForbidden(Error):
109109
def __init__(self, name, content):
110-
super(EntitiesForbidden, self).__init__()
110+
super().__init__()
111111
self.name = name
112112
self.content = content
113113

src/zeep/wsdl/attachments.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
import base64
88
import sys
99

10-
if sys.version_info >= (3, 8):
11-
from functools import cached_property
12-
else:
13-
from cached_property import cached_property
10+
from functools import cached_property
1411

1512
from requests.structures import CaseInsensitiveDict
1613

src/zeep/wsdl/wsdl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
~~~~~~~~~~~~~~
44
55
"""
6-
from __future__ import print_function
76

87
import logging
98
import operator

0 commit comments

Comments
 (0)