Skip to content

Commit 5c1c7ed

Browse files
committedSep 12, 2015
Better .py[cod] handling
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 1a2f1b5 commit 5c1c7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/plugins/command/auto/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def do_rebuild(self, event):
263263
if (fname.endswith('~') or
264264
fname.startswith('.') or
265265
'__pycache__' in event_path or
266-
'.pyc' in event_path or '.pyo' in event_path or '.pyd' in event_path or
266+
event_path.endswith(('.pyc', '.pyo', '.pyd')) or
267267
os.path.isdir(event_path)): # Skip on folders, these are usually duplicates
268268
return
269269
self.logger.info('REBUILDING SITE (from {0})'.format(event_path))

0 commit comments

Comments
 (0)
Please sign in to comment.