You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows and Unix have different end of line characters (\r\n in Window and \n in Unix).
I saw some methods didn't consider such difference. For example, in view_client.py we had:
def validServerResponse(self, response):
"""
Checks the response received from the I{ViewServer}.
@return: C{True} if the response received matches L{PARCEL_TRUE}, C{False} otherwise
"""
PARCEL_TRUE = "Result: Parcel(00000000 00000001 '........')\r\n"
''' The TRUE response parcel '''
return response == PARCEL_TRUE
It should be something like this:
def validServerResponse(self, response):
"""
Checks the response received from the I{ViewServer}.
@return: C{True} if the response received matches L{PARCEL_TRUE}, C{False} otherwise
"""
PARCEL_TRUE = "Result: Parcel(00000000 00000001 '........')"
''' The TRUE response parcel '''
return response.strip() == PARCEL_TRUE
I think there are more such errors. I'll try to fix them soon.
The text was updated successfully, but these errors were encountered:
Windows and Unix have different end of line characters (
\r\n
in Window and\n
in Unix).I saw some methods didn't consider such difference. For example, in
view_client.py
we had:It should be something like this:
I think there are more such errors. I'll try to fix them soon.
The text was updated successfully, but these errors were encountered: