aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/uzbl/plugins/on_event.py
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2009-11-24 22:14:32 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2009-11-24 22:14:32 +0800
commit46005a341732359013572564f299901838eb7c2b (patch)
treeb652c61e1b6f587bdcfe4c491b62f1678aca3b16 /examples/data/uzbl/plugins/on_event.py
parenteef888c71cf049cf046b5f30a0e58c63d98f27ff (diff)
Revert stupid idea of using %@ instead of %s.
Diffstat (limited to 'examples/data/uzbl/plugins/on_event.py')
-rw-r--r--examples/data/uzbl/plugins/on_event.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/data/uzbl/plugins/on_event.py b/examples/data/uzbl/plugins/on_event.py
index 3dfc3fa..afee4e6 100644
--- a/examples/data/uzbl/plugins/on_event.py
+++ b/examples/data/uzbl/plugins/on_event.py
@@ -1,7 +1,7 @@
'''Plugin provides arbitrary binding of uzbl events to uzbl commands.
Formatting options:
- %@ = space separated string of the arguments
+ %s = space separated string of the arguments
%1 = argument 1
%2 = argument 2
%n = argument n
@@ -45,10 +45,10 @@ def get_on_events(uzbl):
def expand(cmd, args):
- '''Replaces "%@ %1 %2 %3..." with "<all args> <arg 0> <arg 1>...".'''
+ '''Replaces "%s %1 %2 %3..." with "<all args> <arg 0> <arg 1>...".'''
- if '%@' in cmd:
- cmd = cmd.replace('%@', ' '.join(map(unicode, args)))
+ if '%s' in cmd:
+ cmd = cmd.replace('%s', ' '.join(map(unicode, args)))
for (index, arg) in enumerate(args):
index += 1