Explorar o código

resolve confilicting select names

Oz Nahum %!s(int64=12) %!d(string=hai) anos
pai
achega
4e4b9485fc
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      pwman/ui/cli.py

+ 2 - 4
pwman/ui/cli.py

@@ -39,9 +39,8 @@ import fcntl
 import getpass
 import cmd
 import traceback
-import select
 import time
-import select
+import select as uselect
 
 
 try:
@@ -184,8 +183,7 @@ class PwmanCli(cmd.Cmd):
         print
 
         def heardEnter():
-            #import select
-            i,o,e = select.select([sys.stdin],[],[],0.0001)
+            i,o,e = uselect.select([sys.stdin],[],[],0.0001)
             for s in i:
                 if s == sys.stdin:
                    input = sys.stdin.readline()