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
Anti-censorship
GetTor Project
gettor
Commits
68e97f6f
Commit
68e97f6f
authored
Jun 20, 2014
by
ilv
Browse files
Links file generation tests
parent
dd152558
Changes
2
Show whitespace changes
Inline
Side-by-side
src/create_links_demo.py
0 → 100644
View file @
68e97f6f
#!/usr/bin/python
#
# Dummy script to test GetTore's Core module progress
#
import
gettor
try
:
core
=
gettor
.
Core
(
'gettor.cfg'
)
core
.
create_links_file
(
'Github'
)
core
.
add_link
(
'Github'
,
'linux'
,
'es'
,
'https://foo.bar https://foo.bar.asc 111-222-333-444'
)
core
.
add_link
(
'Github'
,
'linux'
,
'es'
,
'https://foo.bar https://foo.bar.asc 555-666-777-888'
)
except
ValueError
as
e
:
print
"Value error: "
+
str
(
e
)
except
RuntimeError
as
e
:
print
"Internal error: "
+
str
(
e
)
src/providers/github.links
0 → 100644
View file @
68e97f6f
[provider]
name = Github
[linux]
es = https://foo.bar https://foo.bar.asc 111-222-333-444,
https://foo.bar https://foo.bar.asc 555-666-777-888
[windows]
[osx]
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