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

Python Redis example fails for python 3 run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8, 1.9, 2.0, 2.1, 2.2
    • 2.3
    • examples
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: