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
54d87e6d
Commit
54d87e6d
authored
Jun 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1213f847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+5
-8
No files found.
wcfs/testprog/treegen.py
View file @
54d87e6d
...
...
@@ -78,7 +78,7 @@ XXX
from
__future__
import
print_function
,
absolute_import
import
os
,
sys
import
sys
from
golang
import
func
,
defer
,
panic
from
golang
import
time
from
ZODB
import
DB
...
...
@@ -86,6 +86,7 @@ from ZODB.Connection import Connection
from
ZODB.MappingStorage
import
MappingStorage
import
transaction
import
random
import
six
from
wendelin.wcfs.internal
import
xbtree
,
xbtree_test
from
wendelin.bigfile.file_zodb
import
ZBlk
...
...
@@ -417,15 +418,11 @@ def xreadlines(r):
@
func
def
cmd_allstructs
(
argv
):
if
len
(
argv
)
!=
5
:
print
(
"Usage: treegen allstructs <maxdepth> <maxsplit> <n> <kv1> <kv2>"
,
file
=
sys
.
stderr
)
print
(
"Usage: treegen allstructs <maxdepth> <maxsplit> <n>
(/<seed>)
<kv1> <kv2>"
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
maxdepth
=
int
(
argv
[
0
])
maxsplit
=
int
(
argv
[
1
])
n
=
int
(
argv
[
2
])
# XXX -> nsample?
kv1
,
kv2
=
argv
[
3
:]
seed
=
os
.
environ
.
get
(
"treegen_SEED"
)
AllStructs
(
kv1
,
kv2
,
maxdepth
,
maxsplit
,
n
,
seed
)
r
=
six
.
StringIO
(
' '
.
join
(
argv
))
AllStructsSrv
(
r
)
@
func
def
cmd_allstructs_srv
(
argv
):
...
...
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