Navigation Menu

Skip to content

Commit

Permalink
fname is unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Dec 5, 2017
1 parent 1d2e20a commit 16c7e50
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nikola/plugins/command/auto/__init__.py
Expand Up @@ -274,7 +274,6 @@ def run_nikola_build(self, event):
# Move events have a dest_path, some editors like gedit use a
# move on larger save operations for write protection
event_path = event.dest_path if hasattr(event, 'dest_path') else event.src_path
fname = os.path.basename(event_path)
is_hidden = os.stat(event_path).st_file_attributes & stat.FILE_ATTRIBUTE_HIDDEN
has_hidden_component = any(p.startswith('.') for p in event_path.split(os.sep))
if (is_hidden or has_hidden_component or
Expand Down

0 comments on commit 16c7e50

Please sign in to comment.