The classmethod should be converted into a standard method
This commit is contained in:
parent
406f31baf0
commit
5789916953
@ -30,9 +30,8 @@ class GitPlugin(PapersPlugin):
|
|||||||
print(a)
|
print(a)
|
||||||
GitPlugin.shell(' '.join([shell_quote(a) for a in args.arguments]))
|
GitPlugin.shell(' '.join([shell_quote(a) for a in args.arguments]))
|
||||||
|
|
||||||
@classmethod
|
def shell(self, cmd):
|
||||||
def shell(cls, cmd):
|
subprocess.call('git -C {} {}'.format(self.pubsdir, cmd), shell=True)
|
||||||
subprocess.call('git -C {} {}'.format(cls.pubsdir, cmd), shell=True)
|
|
||||||
|
|
||||||
|
|
||||||
@RenameEvent.listen()
|
@RenameEvent.listen()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user