The classmethod should be converted into a standard method

main
Amlesh Sivanantham (zamlz) 6 years ago
parent 406f31baf0
commit 5789916953
No known key found for this signature in database
GPG Key ID: 882C395C3B28902C

@ -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()

Loading…
Cancel
Save