summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2011-05-18 21:55:17 +0200
committerLaurent Bachelier <laurent@bachelier.name>2011-05-18 21:55:17 +0200
commit8c1851c09ab828b2988f4520f3c861df195dfb0d (patch)
tree91b185a57d1e133cfb50626c2d4fad9233dec050
parentChange view registration (diff)
downloadffs-8c1851c09ab828b2988f4520f3c861df195dfb0d.tar.xz
Add an underscore to reduce the possibility of conflicts
-rw-r--r--ffs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffs.py b/ffs.py
index 56edb26..94d8833 100644
--- a/ffs.py
+++ b/ffs.py
@@ -7,10 +7,10 @@ class RouterError(Exception):
class Router(object):
- def __init__(self, advroutes=None, **routes):
- if advroutes is None:
- advroutes = {}
- routes.update(advroutes)
+ def __init__(self, _advroutes=None, **routes):
+ if _advroutes is None:
+ _advroutes = {}
+ routes.update(_advroutes)
self.routes = []
for pattern, cls in routes.iteritems():
self.register(pattern, cls)