diff options
| author | maxim-yurchuk <[email protected]> | 2024-10-09 12:29:46 +0300 |
|---|---|---|
| committer | maxim-yurchuk <[email protected]> | 2024-10-09 13:14:22 +0300 |
| commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
| tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/cycler | |
| parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) | |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/cycler')
| -rw-r--r-- | contrib/python/cycler/py2/patches/01-from-upstream.patch | 31 |
1 files changed, 31 insertions, 0 deletions
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: |
