summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-28 14:47:10 +0200
committerhut <hut@lavabit.com>2010-04-28 14:47:10 +0200
commit03ef4f4c9a23026f6ce7b0a30117b6a9cacba4de (patch)
treec47074360ab3970a22ecbe8ee0788c35b02c4127
parent1e47d0d9086595633218824b0efb30eb1a38c3a7 (diff)
downloadranger-03ef4f4c9a23026f6ce7b0a30117b6a9cacba4de.tar.gz
widgets.console: give a local variable a more meaningful name
-rw-r--r--ranger/gui/widgets/console.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index f06b911b..dbdc8b53 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -452,24 +452,24 @@ class OpenConsole(ConsoleWithTab):
 					if file.shell_escaped_basename.startswith(start_of_word))
 
 	def _substitute_metachars(self, command):
-		dct = {}
+		macros = {}
 
 		if self.fm.env.cf:
-			dct['f'] = shell_quote(self.fm.env.cf.basename)
+			macros['f'] = shell_quote(self.fm.env.cf.basename)
 		else:
-			dct['f'] = ''
+			macros['f'] = ''
 
-		dct['s'] = ' '.join(shell_quote(fl.basename) \
+		macros['s'] = ' '.join(shell_quote(fl.basename) \
 				for fl in self.fm.env.get_selection())
 
-		dct['c'] = ' '.join(shell_quote(fl.path)
+		macros['c'] = ' '.join(shell_quote(fl.path)
 				for fl in self.fm.env.copy)
 
-		dct['t'] = ' '.join(shell_quote(fl.basename)
+		macros['t'] = ' '.join(shell_quote(fl.basename)
 				for fl in self.fm.env.cwd.files
 				if fl.realpath in self.fm.tags)
 
-		return _CustomTemplate(command).safe_substitute(dct)
+		return _CustomTemplate(command).safe_substitute(macros)
 
 	def _parse(self):
 		if '!' in self.line:
a> 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225