Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak '' comparison to be clearer. No behavior changes.

  • Loading branch information...
commit 059ce2753a28d2380a6c11c6300ee66c5f93964f 1 parent 4479434
@erikrose erikrose authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 pyelasticsearch/client.py
View
7 pyelasticsearch/client.py
@@ -162,12 +162,9 @@ def _to_query(cls, obj):
" query string." % obj)
def _join_path(self, path_components):
- """
- Smush together the (string) path components.
- Ignores empty strings and None.
- """
+ """Smush together the path components, omitting '' and None ones."""
path = '/'.join(quote_plus(str(p), '') for p in path_components if
- p is not None and len(str(p)))
+ p is not None and p != '')
if not path.startswith('/'):
path = '/' + path
Please sign in to comment.
Something went wrong with that request. Please try again.