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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
1febcb14
Commit
1febcb14
authored
Apr 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
70cd471f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
wcfs/__init__.py
wcfs/__init__.py
+2
-5
No files found.
wcfs/__init__.py
View file @
1febcb14
...
...
@@ -87,7 +87,7 @@ class WCFS(_WCFS):
# ---- WCFS raw file access ----
# ---- WCFS raw file access ----
XXX -> wcfs_test.py ? (used only there)
# _path returns path for object on wcfs.
# - str: wcfs root + obj;
...
...
@@ -277,8 +277,6 @@ def _wcfs_exe():
#
# it also makes sure the mountpoint exists.
def
_mntpt_4zurl
(
zurl
):
# XXX what if zurl is zconfig://... ? -> then we have to look inside?
# -> zstor_2zurl extracts zurl in canonical form and zconfig:// is not possible there.
m
=
hashlib
.
sha1
()
m
.
update
(
zurl
)
mntpt
=
"%s/wcfs/%s"
%
(
tempfile
.
gettempdir
(),
m
.
hexdigest
())
...
...
@@ -302,7 +300,7 @@ def _mkdir_p(path):
#
# it is an error if wcfs was already started.
#
#
XXX optv
#
optv is list of options to pass to wcfs server.
# if exec_ is True, wcfs is not spawned, but executed into.
#
# serve(zurl, exec_=False).
...
...
@@ -330,7 +328,6 @@ def serve(zurl, optv, exec_=False):
# if called as main just -> serve()
def
main
():
argv
=
sys
.
argv
[
1
:]
...
...
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