From a408ba5ce91199fe2102a2b7606eaba8f936cb9d Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 5 Feb 2014 20:17:23 +0100 Subject: [PATCH] Whitespace cleanups. --- plugin/UltiSnips/__init__.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/plugin/UltiSnips/__init__.py b/plugin/UltiSnips/__init__.py index 222495c..d8f473e 100755 --- a/plugin/UltiSnips/__init__.py +++ b/plugin/UltiSnips/__init__.py @@ -1046,9 +1046,8 @@ class SnippetManager(object): @property def primary_filetype(self): - """ Property for the primary filetype. This filetype - will be edited when UltiSnipsEdit is called - without any arguments. + """ This filetype will be edited when UltiSnipsEdit is called without + any arguments. """ return self._filetypes[_vim.buf.nr][0] @@ -1087,16 +1086,12 @@ class SnippetManager(object): os.mkdir(path) edit = os.path.join(path, filename) - return edit - # Loading def _load_snippets_for(self, ft): self.snippet_dict(ft).reset() - for fn in _base_snippet_files_for(ft): self._parse_snippets(ft, fn) - # Now load for the parents for p in self._snippets[ft].extends: if p not in self._snippets: @@ -1113,10 +1108,8 @@ class SnippetManager(object): elif do_hash: cur_snips = set(_base_snippet_files_for(ft)) old_snips = set(self.snippet_dict(ft).files) - if cur_snips - old_snips: return True - return False def _ensure_loaded(self, ft, checked=None):