Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
4eec81d9
Commit
4eec81d9
authored
Oct 19, 2022
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: remove deprecated splitport().
parent
b8c8fe82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
product/ERP5/bin/zopewsgi.py
product/ERP5/bin/zopewsgi.py
+1
-7
No files found.
product/ERP5/bin/zopewsgi.py
View file @
4eec81d9
...
@@ -10,10 +10,6 @@ import sys
...
@@ -10,10 +10,6 @@ import sys
from
tempfile
import
TemporaryFile
from
tempfile
import
TemporaryFile
import
time
import
time
from
six.moves.urllib.parse
import
quote
from
six.moves.urllib.parse
import
quote
try
:
from
urllib
import
splitport
except
ImportError
:
# six.PY3
from
urllib.parse
import
splitport
from
waitress.server
import
create_server
from
waitress.server
import
create_server
import
ZConfig
import
ZConfig
...
@@ -234,12 +230,10 @@ def runwsgi():
...
@@ -234,12 +230,10 @@ def runwsgi():
interval
=
args
.
timerserver_interval
,
interval
=
args
.
timerserver_interval
,
)
)
ip
,
port
=
splitport
(
args
.
address
)
port
=
int
(
port
)
createServer
(
createServer
(
app_wrapper
(
app_wrapper
(
large_file_threshold
=
getattr
(
conf
,
'large_file_threshold'
,
None
),
large_file_threshold
=
getattr
(
conf
,
'large_file_threshold'
,
None
),
webdav_ports
=
[
port
]
if
args
.
webdav
else
()),
webdav_ports
=
[
int
(
args
.
address
.
rsplit
(
':'
,
1
)[
1
])
]
if
args
.
webdav
else
()),
listen
=
args
.
address
,
listen
=
args
.
address
,
logger
=
access_log_logger
,
logger
=
access_log_logger
,
threads
=
getattr
(
conf
,
'zserver_threads'
,
4
),
threads
=
getattr
(
conf
,
'zserver_threads'
,
4
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment