Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6660

Python Redis example fails for python 3 run

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9, 2.0, 2.1, 2.2
    • Fix Version/s: 2.3
    • Component/s: examples
    • Labels:
      None

      Description

      Looks like python redis example fails due to design python 2. But for python 3 run raised the following error:

        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
      

      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'))

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oleg-ostanin Oleg Ostanin
                Reporter:
                skozlov Sergey Kozlov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: