Skip to content

Commit

Permalink
pull/2: python3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kolypto committed Dec 13, 2018
1 parent 23635a4 commit f1926e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion j2cli/extras/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def docker_link(value, format='{addr}:{port}'):
:return: Formatted string
"""
# pass undefined values on down the pipeline
if(is_undefined(value)):
if is_undefined(value):
return value

# Parse the value
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='j2cli',
version='0.3.1-0',
version='0.3.2-0',
author='Mark Vartanyan',
author_email='[email protected]',

Expand Down Expand Up @@ -55,6 +55,6 @@
'Topic :: Software Development',
'Natural Language :: English',
'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3',
],
)
6 changes: 2 additions & 4 deletions tests/render-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ def setUp(self):
def _testme(self, argv, stdin=None, env=None):
""" Helper test shortcut """
result = render_command(os.getcwd(), env or {}, stdin, argv)
if(isinstance(result, str)):
self.assertEqual(self.expected_output, result)
else:
self.assertEqual(self.expected_output.encode('UTF-8'), result)
if isinstance(result, str):
result = result.encode('UTF-8')

def test_ini(self):
# Filename
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py27
envlist=py27,py36,py37
skip_missing_interpreters=True

[testenv]
Expand Down

0 comments on commit f1926e3

Please sign in to comment.