aboutsummaryrefslogtreecommitdiff
path: root/uritemplate/api.py
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-01-07 14:06:28 -0800
committerandroid-build-merger <android-build-merger@google.com>2020-01-07 14:06:28 -0800
commit5492dc4462f38ec23ff1cd58f66f8d19cd23f04b (patch)
tree6072009c262a4bd31720d0c97d20d3a5dbffbb0c /uritemplate/api.py
parentb7137cc2f5b626d8d644ccd8866c4dab837bbd99 (diff)
parenteab8cbc70cc7907afb0105d11ebf812aa99c11d0 (diff)
downloaduritemplates-5492dc4462f38ec23ff1cd58f66f8d19cd23f04b.tar.gz
Upgrade python/uritemplates to 3.0.1
am: eab8cbc70c Change-Id: Ib1cf1d8c27befad71731abd470cb3eb7e73044ed
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)