Whitespace cleanups.

This commit is contained in:
Holger Rapp 2014-02-05 20:17:23 +01:00
parent daf778f59c
commit a408ba5ce9

View File

@ -1046,9 +1046,8 @@ class SnippetManager(object):
@property @property
def primary_filetype(self): def primary_filetype(self):
""" Property for the primary filetype. This filetype """ This filetype will be edited when UltiSnipsEdit is called without
will be edited when UltiSnipsEdit is called any arguments.
without any arguments.
""" """
return self._filetypes[_vim.buf.nr][0] return self._filetypes[_vim.buf.nr][0]
@ -1087,16 +1086,12 @@ class SnippetManager(object):
os.mkdir(path) os.mkdir(path)
edit = os.path.join(path, filename) edit = os.path.join(path, filename)
return edit return edit
# Loading
def _load_snippets_for(self, ft): def _load_snippets_for(self, ft):
self.snippet_dict(ft).reset() self.snippet_dict(ft).reset()
for fn in _base_snippet_files_for(ft): for fn in _base_snippet_files_for(ft):
self._parse_snippets(ft, fn) self._parse_snippets(ft, fn)
# Now load for the parents # Now load for the parents
for p in self._snippets[ft].extends: for p in self._snippets[ft].extends:
if p not in self._snippets: if p not in self._snippets:
@ -1113,10 +1108,8 @@ class SnippetManager(object):
elif do_hash: elif do_hash:
cur_snips = set(_base_snippet_files_for(ft)) cur_snips = set(_base_snippet_files_for(ft))
old_snips = set(self.snippet_dict(ft).files) old_snips = set(self.snippet_dict(ft).files)
if cur_snips - old_snips: if cur_snips - old_snips:
return True return True
return False return False
def _ensure_loaded(self, ft, checked=None): def _ensure_loaded(self, ft, checked=None):