MCPcopy Create free account
hub / github.com/docker/docker-py / __init__

Method __init__

docker/utils/build.py:223–230  ·  view source on GitHub ↗
(self, pattern_str)

Source from the content-addressed store, hash-verified

221
222class Pattern:
223 def __init__(self, pattern_str):
224 self.exclusion = False
225 if pattern_str.startswith('!'):
226 self.exclusion = True
227 pattern_str = pattern_str[1:]
228
229 self.dirs = self.normalize(pattern_str)
230 self.cleaned_pattern = '/'.join(self.dirs)
231
232 @classmethod
233 def normalize(cls, p):

Callers

nothing calls this directly

Calls 2

normalizeMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected