Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
75c9a868
Commit
75c9a868
authored
Jan 27, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
895b168c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
wcfs/client/_wcfs.pyx
wcfs/client/_wcfs.pyx
+2
-11
No files found.
wcfs/client/_wcfs.pyx
View file @
75c9a868
...
...
@@ -25,8 +25,7 @@
# Package _wcfs provides Python-wrappers for C++ wcfs client package.
# See _wcfs.pxd for package overview.
from
golang
cimport
pychan
,
nil
from
golang
import
context
as
pycontext
from
golang
cimport
pychan
,
pyerror
,
nil
cdef
extern
from
*
:
ctypedef
bint
cbool
"bool"
...
...
@@ -265,15 +264,7 @@ def _tpywlinkwrite(PyWatchLink pywlink, bytes pypkt):
cdef
object
pyerr
(
error
err
):
if
err
==
nil
:
return
None
# XXX support for other errors? is it good idea?
# XXX -> errors.Is ?
if
err
.
eq
(
context
.
canceled
):
return
pycontext
.
canceled
if
err
.
eq
(
context
.
deadlineExceeded
):
return
pycontext
.
deadlineExceeded
return
RuntimeError
(
err
.
Error
())
# XXX exc class ok?
return
pyerror
.
from_error
(
err
)
from
golang
cimport
topyexc
...
...
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