diff server/utils.py @ 25:2943f62c8e62

- Make the python work on openwrt - main.c: Stay awake for testing print CRC as unsigned
author Matt Johnston <matt@ucc.asn.au>
date Wed, 06 Jun 2012 23:05:35 +0800
parents 44c5ab5ea879
children d3e5934fe55c
line wrap: on
line diff
--- a/server/utils.py	Wed Jun 06 22:32:49 2012 +0800
+++ b/server/utils.py	Wed Jun 06 23:05:35 2012 +0800
@@ -1,6 +1,6 @@
 import os
 import sys
-import ctypes
+#import ctypes
 import time
 import select
 
@@ -16,7 +16,7 @@
 __all__ = ('monotonic_time', 'retry')
 
 clock_gettime = None
-no_clock_gettime = False
+no_clock_gettime = True
 def monotonic_time():
     global clock_gettime
     global no_clock_gettime
@@ -77,7 +77,7 @@
         if c == '\r':
             continue
 
-        buf.append(c)
+        buf += c
         if c == '\n':
             return buf