diff options
author | Haibo Huang <hhb@google.com> | 2020-01-07 14:06:28 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2020-01-07 14:06:28 -0800 |
commit | 5492dc4462f38ec23ff1cd58f66f8d19cd23f04b (patch) | |
tree | 6072009c262a4bd31720d0c97d20d3a5dbffbb0c /uritemplate/api.py | |
parent | b7137cc2f5b626d8d644ccd8866c4dab837bbd99 (diff) | |
parent | eab8cbc70cc7907afb0105d11ebf812aa99c11d0 (diff) | |
download | uritemplates-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.py | 4 |
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) |