Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
9580a87e
Commit
9580a87e
authored
Jan 08, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use print function instead of print statement
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
c61a45f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
weblate/requirements.py
weblate/requirements.py
+4
-2
weblate/trans/tests/test_models.py
weblate/trans/tests/test_models.py
+1
-0
weblate/trans/tests/test_selenium.py
weblate/trans/tests/test_selenium.py
+3
-2
No files found.
weblate/requirements.py
View file @
9580a87e
...
...
@@ -18,6 +18,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from
__future__
import
print_function
# For some reasons, this fails in PyLint sometimes...
# pylint: disable=E0611,F0401
from
distutils.version
import
LooseVersion
...
...
@@ -209,8 +211,8 @@ def check_version(name, url, version, expected):
return
False
looseversion
=
LooseVersion
(
version
)
if
looseversion
<
expected
:
print
'*** %s <%s> is too old! ***'
%
(
name
,
url
)
print
'Installed version %s, required %s'
%
(
version
,
expected
)
print
(
'*** {0} <{1}> is too old! ***'
.
format
(
name
,
url
)
)
print
(
'Installed version {0}, required {1}'
.
format
(
version
,
expected
)
)
return
True
return
False
...
...
weblate/trans/tests/test_models.py
View file @
9580a87e
...
...
@@ -22,6 +22,7 @@
Tests for translation models.
"""
from
__future__
import
print_function
from
unittest
import
SkipTest
from
django.test
import
TestCase
from
django.conf
import
settings
...
...
weblate/trans/tests/test_selenium.py
View file @
9580a87e
...
...
@@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from
__future__
import
print_function
from
unittest
import
SkipTest
import
time
import
django
...
...
@@ -117,7 +118,7 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
cls
.
driver
.
implicitly_wait
(
10
)
cls
.
actions
=
webdriver
.
ActionChains
(
cls
.
driver
)
jobid
=
cls
.
driver
.
session_id
print
'Sauce Labs job: https://saucelabs.com/jobs/{}'
.
format
(
jobid
)
print
(
'Sauce Labs job: https://saucelabs.com/jobs/{}'
.
format
(
jobid
)
)
super
(
SeleniumTests
,
cls
).
setUpClass
()
def
setUp
(
self
):
...
...
@@ -258,7 +259,7 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
except
WebDriverException
as
error
:
# This usually happens when browser fails to delete some
# of the cookies for whatever reason.
print
'Ignoring: {0}'
.
format
(
error
)
print
(
'Ignoring: {0}'
.
format
(
error
)
)
# Confirm account
self
.
driver
.
get
(
url
)
...
...
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