Changeset 2687

Show
Ignore:
Timestamp:
03/28/17 04:42:25 (8 months ago)
Author:
jwoithe
Message:

registration: use a byte-string when comparing server responses for compatibility with python3. Suggested by Xavier Forestier.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/registration.py

    r1934 r2687  
    8787        errline = "Bad response from server" 
    8888        for i in range(len(lines)): 
    89             if lines[i][0:10] == "RESULT: OK": 
     89            if lines[i][0:10] == b"RESULT: OK": 
    9090                ok = True 
    91             elif lines[i][0:12] == "RESULT: FAIL": 
     91            elif lines[i][0:12] == b"RESULT: FAIL": 
    9292                ok = False 
    9393                if len(lines)>i+1: