Clone of official tools
Diff: host_tests/udpecho_server_auto.py
- Revision:
- 43:2a7da56ebd24
- Parent:
- 0:66f3b5499f7f
--- a/host_tests/udpecho_server_auto.py Mon Nov 06 13:17:14 2017 -0600 +++ b/host_tests/udpecho_server_auto.py Tue Sep 25 13:43:09 2018 -0500 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. """ +from __future__ import print_function import re import sys @@ -45,7 +46,7 @@ # We assume this test fails so can't send 'error' message to server try: self.s = socket(AF_INET, SOCK_DGRAM) - except Exception, e: + except Exception as e: self.s = None selftest.notify("HOST: Socket error: %s"% e) return selftest.RESULT_ERROR