PEP8 and simple cleanups

This commit is contained in:
Roberto Rosario
2014-05-19 16:19:55 -04:00
parent fd254135f5
commit 60ac55bfd3
4 changed files with 6 additions and 13 deletions

View File

@@ -15,11 +15,11 @@ from .filesystem import (fs_create_index_directory,
fs_delete_index_directory, assemble_suffixed_filename)
from .models import Index, IndexInstanceNode, DocumentRenameCount
if SLUGIFY_PATHS == False:
if SLUGIFY_PATHS:
SLUGIFY_FUNCTION = slugify
else:
# Do not slugify path or filenames and extensions
SLUGIFY_FUNCTION = lambda x: x
else:
SLUGIFY_FUNCTION = slugify
# External functions