diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-01-28 13:47:43 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-01-28 13:50:42 +0200 |
commit | 9c9be7aed5a49a06c58e938d9d1addd41303debe (patch) | |
tree | adc6bc09b562184723fb85043ce52b4e3e0c8e01 /dev-python/mygpoclient/files | |
parent | dev-python/ruamel-std-pathlib: add 0.9.1 (diff) | |
download | gentoo-9c9be7aed5a49a06c58e938d9d1addd41303debe.tar.gz gentoo-9c9be7aed5a49a06c58e938d9d1addd41303debe.tar.bz2 gentoo-9c9be7aed5a49a06c58e938d9d1addd41303debe.zip |
dev-python/mygpoclient: enable py3.10, ebuild cleanup
Closes: https://bugs.gentoo.org/745948
Closes: https://bugs.gentoo.org/723736
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/mygpoclient/files')
-rw-r--r-- | dev-python/mygpoclient/files/mygpoclient-1.8-fix-literal.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/mygpoclient/files/mygpoclient-1.8-fix-literal.patch b/dev-python/mygpoclient/files/mygpoclient-1.8-fix-literal.patch new file mode 100644 index 000000000000..372d0bc2bc40 --- /dev/null +++ b/dev-python/mygpoclient/files/mygpoclient-1.8-fix-literal.patch @@ -0,0 +1,35 @@ +From bdf8c8ce38cff8938bab3544c6dbb0d509ce7720 Mon Sep 17 00:00:00 2001 +From: Eric Le Lay <elelay@macports.org> +Date: Sun, 22 Mar 2020 16:19:08 +0100 +Subject: [PATCH] use == for comparison with literal + +See https://bugs.python.org/issue34850 +--- + mygpoclient/locator.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/mygpoclient/locator.py b/mygpoclient/locator.py +index c0dc9d7..810f973 100644 +--- a/mygpoclient/locator.py ++++ b/mygpoclient/locator.py +@@ -317,17 +317,17 @@ def settings_uri(self, type, scope_param1, scope_param2): + + filename = self._username + '/%(type)s.json' % locals() + +- if type is 'device': ++ if type == 'device': + if scope_param1 is None: + raise ValueError('Devicename not specified') + filename += '?device=%(scope_param1)s' % locals() + +- if type is 'podcast': ++ if type == 'podcast': + if scope_param1 is None: + raise ValueError('Podcast URL not specified') + filename += '?podcast=%s' % quote(scope_param1) + +- if type is 'episode': ++ if type == 'episode': + if (scope_param1 is None) or (scope_param2 is None): + raise ValueError('Podcast or Episode URL not specified') + filename += '?podcast=%s&episode=%s' % (quote(scope_param1), quote(scope_param2)) |