Patchwork [bitbake-devel] knotty: kill duplicated import of 'time'

login
register
mail settings
Submitter Christopher Larson
Date Nov. 13, 2012, 7:12 p.m.
Message ID <1352833970-22315-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/38953/
State Accepted
Commit a098cebd5c33ebd704efd35d9e655262283cbe1f
Headers show

Comments

Christopher Larson - Nov. 13, 2012, 7:12 p.m.
From: Christopher Larson <chris_larson@mentor.com>

The duplicated import could result in an UnboundLocalError.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 lib/bb/ui/knotty.py | 1 -
 1 file changed, 1 deletion(-)
Richard Purdie - Nov. 14, 2012, 2:40 p.m.
On Tue, 2012-11-13 at 12:12 -0700, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
> 
> The duplicated import could result in an UnboundLocalError.
> 
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
>  lib/bb/ui/knotty.py | 1 -
>  1 file changed, 1 deletion(-)

Merged to master, thanks.

Richard

Patch

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index b99a121..77ec730 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -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")