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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 8.1.0.Alpha2
    • Test suite
    • None

      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.

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

                Created:
                Updated:
                Resolved: