From 8e8f511e8cf207f6ef84820300d7c6a728fc16ae Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Thu, 17 Dec 2009 17:33:31 +0800 Subject: No need to localise the held variable. --- examples/data/uzbl/plugins/bind.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py index 3dedf16..ee1e0c4 100644 --- a/examples/data/uzbl/plugins/bind.py +++ b/examples/data/uzbl/plugins/bind.py @@ -348,11 +348,9 @@ def after_bind(uzbl, bd): def match_and_exec(uzbl, bind, depth, keylet, bd): (on_exec, has_args, mod_cmd, glob, more) = bind[depth] - - held = keylet.held cmd = keylet.modcmd if mod_cmd else keylet.keycmd - if mod_cmd and held != mod_cmd: + if mod_cmd and keylet.held != mod_cmd: return False if has_args: -- cgit v1.2.3