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
d3b5f98a
Commit
d3b5f98a
authored
Jun 20, 2014
by
ilv
Browse files
Fixed format (PEP8)
parent
83e520dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/create_links_demo.py
View file @
d3b5f98a
...
@@ -8,11 +8,11 @@ import gettor
...
@@ -8,11 +8,11 @@ import gettor
try
:
try
:
core
=
gettor
.
Core
(
'gettor.cfg'
)
core
=
gettor
.
Core
(
'gettor.cfg'
)
core
.
create_links_file
(
'Github'
)
core
.
create_links_file
(
'Github'
)
core
.
add_link
(
'Github'
,
'linux'
,
'es'
,
core
.
add_link
(
'Github'
,
'linux'
,
'es'
,
'https://foo.bar https://foo.bar.asc 111-222-333-444'
)
'https://foo.bar https://foo.bar.asc 111-222-333-444'
)
core
.
add_link
(
'Github'
,
'linux'
,
'es'
,
core
.
add_link
(
'Github'
,
'linux'
,
'es'
,
'https://foo.bar https://foo.bar.asc 555-666-777-888'
)
'https://foo.bar https://foo.bar.asc 555-666-777-888'
)
except
ValueError
as
e
:
except
ValueError
as
e
:
print
"Value error: "
+
str
(
e
)
print
"Value error: "
+
str
(
e
)
except
RuntimeError
as
e
:
except
RuntimeError
as
e
:
...
...
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