bitbake: knotty: kill duplicated import of 'time'
authorChristopher Larson <chris_larson@mentor.com>
Tue, 13 Nov 2012 19:12:50 +0000 (12:12 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Nov 2012 14:39:07 +0000 (14:39 +0000)
The duplicated import could result in an UnboundLocalError.

(Bitbake rev: a098cebd5c33ebd704efd35d9e655262283cbe1f)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/knotty.py

index b99a121..77ec730 100644 (file)
@@ -460,7 +460,6 @@ def main(server, eventHandler, tf = TerminalFilter):
             if ioerror.args[0] == 4:
                 pass
         except KeyboardInterrupt:
-            import time
             termfilter.clearFooter()
             if main.shutdown == 1:
                 print("\nSecond Keyboard Interrupt, stopping...\n")