aboutsummaryrefslogtreecommitdiff
path: root/uritemplate/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'uritemplate/api.py')
-rw-r--r--uritemplate/api.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/uritemplate/api.py b/uritemplate/api.py
index 37c7c45..5ad2815 100644
--- a/uritemplate/api.py
+++ b/uritemplate/api.py
@@ -6,6 +6,8 @@ uritemplate.api
This module contains the very simple API provided by uritemplate.
"""
+
+from uritemplate.orderedset import OrderedSet
from uritemplate.template import URITemplate
@@ -68,4 +70,4 @@ def variables(uri):
# => {'username', 'repository'}
"""
- return set(URITemplate(uri).variable_names)
+ return OrderedSet(URITemplate(uri).variable_names)