Uploaded image for project: 'Vnfsdk'
  1. Vnfsdk
  2. VNFSDK-874

Python Code Updates: Vnfsdk(VNFSDK)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • London Release
    • London Release
    • None

      CIMAN-433 will capture a bunch of bugs/tasks related to the migration from Python2 to Python3.  All the ONAP repositories were cloned (4GB data) and scanned using the command below:

      find . -name '*.py' -exec python3 -m py_compile {} \;

      This returned 53 issues across 22 repositories/sub-projects. A Jira bug will be raised for each sub-project. 

      Bugs found affecting this sub-project:

        File "./vnfsdk_refrepo/vnfmarket-be/deployment/vtp2ovp/vtp2ovp-result.py", line 159
          print str(e)
          ^^^^^^^^^^^^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
        File "./vnfsdk_ves-agent/veslibrary/ves_clibrary/evel/evel-test-collector/code/collector/collector.py", line 458
          global logger
          ^^^^^^^^^^^^^
      SyntaxError: name 'logger' is used prior to global declaration

            xudan xudan
            modesevenindustrialsolutions Matthew Watkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: