Quellcode durchsuchen

resolve confilicting select names

Oz Nahum vor 12 Jahren
Ursprung
Commit
4e4b9485fc
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  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()