From 2308687d1ffd83d7108a06f64a7eb0e2c1f0e897 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 10 Feb 2014 08:48:33 +0100 Subject: [PATCH] Small bug fix. --- pythonx/UltiSnips/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/UltiSnips/__init__.py b/pythonx/UltiSnips/__init__.py index 3aacf47..5530abf 100755 --- a/pythonx/UltiSnips/__init__.py +++ b/pythonx/UltiSnips/__init__.py @@ -594,7 +594,7 @@ class SnippetManager(object): changes in the future. 'file_data' can be injected in tests.""" self._snippets[ft].addfile(filename) if file_data is None: - file_data = file_data.read() + file_data = open(filename, "r").read() for event, data in parse_snippets_file(file_data): if event == "error": msg, line_index = data