浏览代码

Move borgmatic.borg.execute module up a level for broader use.

Dan Helfman 6 年之前
父节点
当前提交
f5582b1754
共有 5 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      borgmatic/borg/create.py
  2. 1 1
      borgmatic/borg/info.py
  3. 1 1
      borgmatic/borg/list.py
  4. 0 0
      borgmatic/execute.py
  5. 1 1
      tests/unit/borg/test_execute.py

+ 1 - 1
borgmatic/borg/create.py

@@ -4,7 +4,7 @@ import logging
 import os
 import tempfile
 
-from borgmatic.borg.execute import execute_command
+from borgmatic.execute import execute_command
 from borgmatic.logger import get_logger
 
 logger = get_logger(__name__)

+ 1 - 1
borgmatic/borg/info.py

@@ -1,6 +1,6 @@
 import logging
 
-from borgmatic.borg.execute import execute_command
+from borgmatic.execute import execute_command
 from borgmatic.logger import get_logger
 
 logger = get_logger(__name__)

+ 1 - 1
borgmatic/borg/list.py

@@ -1,6 +1,6 @@
 import logging
 
-from borgmatic.borg.execute import execute_command
+from borgmatic.execute import execute_command
 from borgmatic.logger import get_logger
 
 logger = get_logger(__name__)

+ 0 - 0
borgmatic/borg/execute.py → borgmatic/execute.py


+ 1 - 1
tests/unit/borg/test_execute.py

@@ -2,7 +2,7 @@ import logging
 
 from flexmock import flexmock
 
-from borgmatic.borg import execute as module
+from borgmatic import execute as module
 
 
 def test_execute_command_calls_full_command():