diff options
Diffstat (limited to 'uritemplate/variable.py')
-rw-r--r-- | uritemplate/variable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uritemplate/variable.py b/uritemplate/variable.py index 077ad21..a17c2e1 100644 --- a/uritemplate/variable.py +++ b/uritemplate/variable.py @@ -112,7 +112,7 @@ class URIVariable(object): (name, {'explode': explode, 'prefix': prefix}) ) - self.variable_names = [name for (name, _) in self.variables] + self.variable_names = [varname for (varname, _) in self.variables] def post_parse(self): """Set ``start``, ``join_str`` and ``safe`` attributes. |