Skip to content

Commit b57129c

Browse files
committed
Use the poor man's ternary expression for 2.4 compatibility.
1 parent 6c6157f commit b57129c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

couchdb/tools/replicate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def findpath(parser, s):
5151
if cut is None:
5252
raise parser.error("'%s' does not appear to be a CouchDB" % s)
5353

54-
base = res.url + ('/'.join(parts[:cut]) if parts[:cut] else '')
54+
base = res.url + (parts[:cut] and '/'.join(parts[:cut]) or '')
5555
return base, '/'.join(parts[cut:])
5656

5757
def main():

0 commit comments

Comments
 (0)