Uploaded image for project: 'aaa'
  1. aaa
  2. AAA-183

idmtool has print error on using python3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Neon, Fluorine SR3
    • Oxygen, Fluorine, Neon
    • General
    • None
    • Ubuntu 16.04

    • High

      In Ubuntu 16.04, python3 is default python version, but idmtool is still using non-strict print syntax, so it won't work if we use python3, here is error information.

      vagrant@odl:~$ python3 ./idmtool.py.orig
      File "./idmtool.py.orig", line 143
      print ''
      ^
      SyntaxError: Missing parentheses in call to 'print'

      In python3, print must use parentheses to embrace all the arguments.

            yangyi01 Yi Yang
            yangyi01 Yi Yang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: