Content-Security-Policy: default-src 'none'
Content-Type: text/plain; charset=UTF-8
Content-Length: 701
Content-Disposition: inline; filename="python-memcached-syntax-warnings.patch"
Last-Modified: Thu, 06 Feb 2025 07:47:17 GMT
Expires: Sun, 04 Feb 2035 07:47:17 GMT
ETag: "f8690677c0eef712a8e6e5e7f7e97683b605f11a"

Problem reported upstream:
https://github.com/linsomniac/python-memcached/issues/176

---
 memcache.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/memcache.py b/memcache.py
index 05b6657..b935681 100644
--- a/memcache.py
+++ b/memcache.py
@@ -1300,8 +1300,8 @@ class Client(threading.local):
             key = key[1]
         if key is None:
             raise Client.MemcachedKeyNoneError("Key is None")
-        if key is '':
-            if key_extra_len is 0:
+        if key == '':
+            if key_extra_len == 0:
                 raise Client.MemcachedKeyNoneError("Key is empty")

             #  key is empty but there is some other component to key
--
2.26.2
me='id' value='67c3d230dc10fdd270acc5a0334a538de06e9c50'/><select name='h' onchange='this.form.submit();'>
<option value='koszko' selected='selected'>koszko</option>
<option value='koszko-scripts'>koszko-scripts</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Wojtek's customized Guix</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/guix/about/'>about</a><a href='/guix/'>summary</a><a href='/guix/refs/?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>refs</a><a href='/guix/log/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch'>log</a><a href='/guix/tree/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>tree</a><a class='active' href='/guix/commit/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>commit</a><a href='/guix/diff/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>diff</a></td><td class='form'><form class='right' method='get' action='/guix/log/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch'>
<input type='hidden' name='id' value='67c3d230dc10fdd270acc5a0334a538de06e9c50'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/guix/commit/?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>root</a>/<a href='/guix/commit/gnu?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>gnu</a>/<a href='/guix/commit/gnu/packages?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>packages</a>/<a href='/guix/commit/gnu/packages/patches?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>patches</a>/<a href='/guix/commit/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>llvm-9-fix-lpad-miscompilation.patch</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='67c3d230dc10fdd270acc5a0334a538de06e9c50'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Troy Figiel &lt;troy@troyfigiel.com&gt;</td><td class='right'>2024-01-01 18:53:47 +0100</td></tr>
<tr><th>committer</th><td>Mathieu Othacehe &lt;othacehe@gnu.org&gt;</td><td class='right'>2024-01-09 10:19:43 +0100</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/guix/commit/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>67c3d230dc10fdd270acc5a0334a538de06e9c50</a> (<a href='/guix/patch/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/guix/tree/?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>8c3e98b12fa6073c23fe2d615bf581838270158b</a> /<a href='/guix/tree/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/guix/commit/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=da2c3005191929b3a0990615c3e9053a669d53b3'>da2c3005191929b3a0990615c3e9053a669d53b3</a> (<a href='/guix/diff/gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch?id=67c3d230dc10fdd270acc5a0334a538de06e9c50&amp;id2=da2c3005191929b3a0990615c3e9053a669d53b3'>diff</a>)</td></tr><tr><th>download</th><td colspan='2' class='oid'><a href='/guix/snapshot/guix-67c3d230dc10fdd270acc5a0334a538de06e9c50.tar.gz'>guix-67c3d230dc10fdd270acc5a0334a538de06e9c50.tar.gz</a><br/><a href='/guix/snapshot/guix-67c3d230dc10fdd270acc5a0334a538de06e9c50.zip'>guix-67c3d230dc10fdd270acc5a0334a538de06e9c50.zip</a><br/></td></tr></table>
<div class='commit-subject'>gnu: Add python-portend.</div><div class='commit-msg'>* gnu/packages/python-web.scm (python-portend): New variable.

Signed-off-by: Mathieu Othacehe &lt;othacehe@gnu.org&gt;
</div><div class='diffstat-header'><a href='/guix/diff/?id=67c3d230dc10fdd270acc5a0334a538de06e9c50'>Diffstat</a> (limited to 'gnu/packages/patches/llvm-9-fix-lpad-miscompilation.patch')</div><table summary='diffstat' class='diffstat'></table><div class='diffstat-summary'>0 files changed, 0 insertions, 0 deletions</div><table summary='diff' class='diff'><tr><td></td></tr></table></div> <!-- class=content -->
                         <div class=footer>generated by
                             <a href="https://git.zx2c4.com/cgit/about/">
                                 cgit
                             </a>
                         </div>
                        </div> <!-- id=cgit -->
</body>
</html>
