Selaa lähdekoodia

resolve confilicting select names

Oz Nahum 12 vuotta sitten
vanhempi
commit
4e4b9485fc
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  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()