[
https://issues.apache.org/jira/browse/IGNITE-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209518#comment-16209518
]
ASF GitHub Bot commented on IGNITE-6660:
----------------------------------------
GitHub user oleg-ostanin opened a pull request:
https://github.com/apache/ignite/pull/2879
IGNITE-6660 fixed Python Redis example (print statements)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-6660
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/2879.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2879
----
commit 5b2329fb1f75de4c41592868c58be92fa5a908da
Author: oleg-ostanin <[email protected]>
Date: 2017-10-18T15:16:19Z
IGNITE-6660 fixed Python Redis example (print statements)
----
> Python Redis example fails for python 3 run
> -------------------------------------------
>
> Key: IGNITE-6660
> URL: https://issues.apache.org/jira/browse/IGNITE-6660
> Project: Ignite
> Issue Type: Bug
> Security Level: Public(Viewable by anyone)
> Components: examples
> Affects Versions: 1.8, 1.9, 2.0, 2.1, 2.2
> Reporter: Sergey Kozlov
> Assignee: Oleg Ostanin
> Fix For: 2.3
>
>
> Looks like python redis example fails due to design python 2. But for python
> 3 run raised the following error:
> {noformat}
> File
> "/var/lib/teamcity/data/work/17028f058b6ef75f/i2test/var/suite-examples/gg-pro-fab/examples/redis/redis-example.py",
> line 32
> print 'Value for "k1": %s' % r.get('k1')
> ^
> SyntaxError: invalid syntax
> {noformat}
> The suggested fix is to put brackets for print calls:
> -{{print 'Value for "k1": %s' % r.get('k1')}}-
> {{print('Value for "k1": %s' % r.get('k1'))}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)