Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
003c0a2b
Commit
003c0a2b
authored
Apr 06, 2018
by
juga
Browse files
Include version in v3bw file. Closes #52
parent
3a500499
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/commands/generate.py
View file @
003c0a2b
from
sbws
import
version
from
sbws.globals
import
(
fail_hard
,
is_initted
)
from
sbws.lib.resultdump
import
ResultSuccess
from
sbws.lib.resultdump
import
load_recent_results_in_datadir
...
...
@@ -113,5 +114,6 @@ def main(args, conf, log_):
log_stats
(
data_lines
)
with
open
(
args
.
output
,
'wt'
)
as
fd
:
fd
.
write
(
'{}
\n
'
.
format
(
int
(
time
.
time
())))
fd
.
write
(
'version={}
\n
'
.
format
(
version
))
for
line
in
data_lines
:
fd
.
write
(
'{}
\n
'
.
format
(
str
(
line
)))
Write
Preview
Supports
Markdown
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