From 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 Mon Sep 17 00:00:00 2001 From: maxim-yurchuk Date: Wed, 9 Oct 2024 12:29:46 +0300 Subject: publishFullContrib: true for ydb commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e --- .../cycler/py2/patches/01-from-upstream.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 contrib/python/cycler/py2/patches/01-from-upstream.patch (limited to 'contrib/python/cycler/py2') diff --git a/contrib/python/cycler/py2/patches/01-from-upstream.patch b/contrib/python/cycler/py2/patches/01-from-upstream.patch new file mode 100644 index 00000000000..f794c44b6be --- /dev/null +++ b/contrib/python/cycler/py2/patches/01-from-upstream.patch @@ -0,0 +1,31 @@ +--- contrib/python/cycler/py2/cycler.py (index) ++++ contrib/python/cycler/py2/cycler.py (working tree) +@@ -87,7 +87,7 @@ class Cycler(object): + in-place ``+`` + + ``*`` +- for outer products (itertools.product) and integer multiplication ++ for outer products (`itertools.product`) and integer multiplication + + ``*=`` + in-place ``*`` +@@ -135,6 +135,9 @@ class Cycler(object): + self._keys = _process_keys(self._left, self._right) + self._op = op + ++ def __contains__(self, k): ++ return k in self._keys ++ + @property + def keys(self): + """ +@@ -367,8 +370,7 @@ class Cycler(object): + # and if we care. + + keys = self.keys +- # change this to dict comprehension when drop 2.6 +- out = dict((k, list()) for k in keys) ++ out = {k: list() for k in keys} + + for d in self: + for k in keys: -- cgit v1.3