Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-330

Update server_ctl.py to work with Python 3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 8.1.0.Alpha2
    • None
    • Test suite
    • None

    Description

      Line 16 of server_ctl.py uses the Python 2 syntax for handling exceptions:

      except subprocess.CalledProcessError, error:

      This should be changed to:

      except subprocess.CalledProcessError as error:

      Which will work in both Python 2 or 3:

      Also in Python 3, the process object cannot be pickled on Linux. The code from Windows that pickles the process ID can be used on Linux as well.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-afield Alan Field
              rhn-support-afield Alan Field
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: