fix a typo

This commit is contained in:
Andreas Zweili 2019-02-10 17:19:00 +01:00
parent cb65baf8e5
commit 4c3fb85fcf
1 changed files with 3 additions and 3 deletions

View File

@ -11,13 +11,13 @@ from helper import BorgException
class BorgQtThread(QThread): class BorgQtThread(QThread):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self.create_pocess() self.create_process()
def stop(self): def stop(self):
self.p.kill() self.p.kill()
self.json_err = None self.json_err = None
def create_pocess(self): def create_process(self):
self.create_command() self.create_command()
self.p = subprocess.Popen(self.command, self.p = subprocess.Popen(self.command,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
@ -126,7 +126,7 @@ class RestoreThread(BorgQtThread):
self.command = ['borg', 'extract', '--log-json', self.command = ['borg', 'extract', '--log-json',
('::' + self.archive_name)] ('::' + self.archive_name)]
def create_pocess(self): def create_process(self):
self.create_command() self.create_command()
self.p = subprocess.Popen(self.command, self.p = subprocess.Popen(self.command,
cwd=self.restore_path, cwd=self.restore_path,