From d207a406cfae745b5fe33117e9d8a7516e67b832 Mon Sep 17 00:00:00 2001 From: jberthet Date: Thu, 3 Oct 2013 17:50:48 +0200 Subject: [PATCH] Fixing args number in run_ In ST2, got an error saying that run_() has been given 2 arguments and was waiting for 3. I added a default None value to the unused 3rd args to maintain compatibility with ST version which are given 3 args to run_() --- Plist Binary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plist Binary.py b/Plist Binary.py index 7c00a6f..b9df10b 100644 --- a/Plist Binary.py +++ b/Plist Binary.py @@ -2,7 +2,7 @@ import sublime, sublime_plugin import os class ToggleBinaryCommand(sublime_plugin.TextCommand): - def run_(self, view, args): + def run_(self, view, args=None): fname = self.view.file_name() if os.path.splitext(fname)[1].lower() != ".plist":