From 5789916953e68456cd48cc0189ab3ecf50fcc498 Mon Sep 17 00:00:00 2001 From: "Amlesh Sivanantham (zamlz)" Date: Wed, 30 Jan 2019 22:05:50 -0800 Subject: [PATCH] The classmethod should be converted into a standard method --- pubs/plugs/git/git.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pubs/plugs/git/git.py b/pubs/plugs/git/git.py index ad1cfc4..99cbdc9 100644 --- a/pubs/plugs/git/git.py +++ b/pubs/plugs/git/git.py @@ -30,9 +30,8 @@ class GitPlugin(PapersPlugin): print(a) GitPlugin.shell(' '.join([shell_quote(a) for a in args.arguments])) - @classmethod - def shell(cls, cmd): - subprocess.call('git -C {} {}'.format(cls.pubsdir, cmd), shell=True) + def shell(self, cmd): + subprocess.call('git -C {} {}'.format(self.pubsdir, cmd), shell=True) @RenameEvent.listen()