فهرست منبع

move shellpattern module to borg.helpers

Thomas Waldmann 2 سال پیش
والد
کامیت
ecd7bce5b8
4فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 0 0
      src/borg/helpers/shellpattern.py
  2. 1 1
      src/borg/manifest.py
  3. 1 2
      src/borg/patterns.py
  4. 1 1
      src/borg/testsuite/shellpattern.py

+ 0 - 0
src/borg/shellpattern.py → src/borg/helpers/shellpattern.py


+ 1 - 1
src/borg/manifest.py

@@ -11,7 +11,7 @@ from .logger import create_logger
 
 logger = create_logger()
 
-from . import shellpattern
+from .helpers import shellpattern
 from .constants import *  # NOQA
 from .helpers.datastruct import StableDict
 from .helpers.parseformat import bin_to_hex

+ 1 - 2
src/borg/patterns.py

@@ -7,8 +7,7 @@ import unicodedata
 from collections import namedtuple
 from enum import Enum
 
-from . import shellpattern
-from .helpers import clean_lines
+from .helpers import clean_lines, shellpattern
 from .helpers.errors import Error
 
 

+ 1 - 1
src/borg/testsuite/shellpattern.py

@@ -2,7 +2,7 @@ import re
 
 import pytest
 
-from .. import shellpattern
+from ..helpers import shellpattern
 
 
 def check(path, pattern):