Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
dd8cb37d
Commit
dd8cb37d
authored
Apr 07, 2022
by
Jens Vagelpohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- sanitize async library import location
parent
5ffb1e89
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
+4
-16
src/ZEO/asyncio/base.py
src/ZEO/asyncio/base.py
+3
-7
src/ZEO/asyncio/testing.py
src/ZEO/asyncio/testing.py
+1
-5
src/ZEO/asyncio/tests.py
src/ZEO/asyncio/tests.py
+0
-4
No files found.
src/ZEO/asyncio/base.py
View file @
dd8cb37d
from
.._compat
import
PY3
if
PY3
:
import
asyncio
else
:
import
trollius
as
asyncio
import
logging
import
logging
import
socket
import
socket
from
struct
import
unpack
from
struct
import
unpack
import
sys
import
sys
from
.compat
import
asyncio
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
INET_FAMILIES
=
socket
.
AF_INET
,
socket
.
AF_INET6
INET_FAMILIES
=
socket
.
AF_INET
,
socket
.
AF_INET6
...
...
src/ZEO/asyncio/testing.py
View file @
dd8cb37d
from
.
._compat
import
PY3
from
.
compat
import
asyncio
if
PY3
:
import
asyncio
else
:
import
trollius
as
asyncio
try
:
try
:
ConnectionRefusedError
ConnectionRefusedError
...
...
src/ZEO/asyncio/tests.py
View file @
dd8cb37d
from
.._compat
import
PY3
from
.._compat
import
PY3
if
PY3
:
if
PY3
:
import
asyncio
def
to_byte
(
i
):
def
to_byte
(
i
):
return
bytes
([
i
])
return
bytes
([
i
])
else
:
else
:
import
trollius
as
asyncio
# NOQA: F401 unused import
def
to_byte
(
b
):
def
to_byte
(
b
):
return
b
return
b
...
...
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