Permalink
Browse files

avoid shading vars

  • Loading branch information...
1 parent 359c14f commit 4e2991244f86bbad30afbbefa5354113dd5af16d @amol- amol- committed Sep 20, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 gearbox/commands/serve.py
@@ -199,7 +199,7 @@ def take_action(self, opts):
opts.daemon = True
app_name = opts.app_name
- vars = self.parse_vars(restvars)
+ parsed_vars = self.parse_vars(restvars)
if not self._scheme_re.search(app_spec):
app_spec = 'config:' + app_spec
server_name = opts.server_name
@@ -266,9 +266,9 @@ def take_action(self, opts):
setup_logging(log_fn)
server = self.loadserver(server_spec, name=server_name,
- relative_to=base, global_conf=vars)
+ relative_to=base, global_conf=parsed_vars)
app = self.loadapp(app_spec, name=app_name,
- relative_to=base, global_conf=vars)
+ relative_to=base, global_conf=parsed_vars)
if self.verbose > 0:
if hasattr(os, 'getpid'):
@@ -945,4 +945,4 @@ def cherrypy_server_runner(
except (KeyboardInterrupt, SystemExit):
server.stop()
- return server
+ return server

0 comments on commit 4e29912

Please sign in to comment.