Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Strip file extension properly (fixes docloader)

Change-Id: Ic0b5860a48b601cb112fa7cf8b6bd217945e65a3
Reviewed-on: http://review.couchbase.org/20910
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
commit 6c6ff9fbdb14e011d8c9d7d8c14f46ba2d4efa43 1 parent c71d9ae
Sergey Avseyev avsej authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cbdocloader
2  cbdocloader
View
@@ -136,7 +136,7 @@ class DocLoader:
print error
def gen_dockey(self, filename):
- return os.path.basename(filename).split('.')[0]
+ return os.path.splitext(os.path.basename(filename))[0]
def enumerate_and_save(self, subdir=None):
if not subdir:
Please sign in to comment.
Something went wrong with that request. Please try again.