Permalink
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...
1 parent c71d9ae commit 6c6ff9fbdb14e011d8c9d7d8c14f46ba2d4efa43 @avsej avsej committed Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit 6c6ff9f

Please sign in to comment.