MCPcopy Create free account
hub / github.com/ActiveState/code / getPattern

Method getPattern

recipes/Python/111969_Blender/recipe-111969.py:59–68  ·  view source on GitHub ↗

returns a pattern for this instance. if no pattern is defined returns a default-pattern.

(self, pattern, values)

Source from the content-addressed store, hash-verified

57 return result[0:-2] + "]"
58
59 def getPattern(self, pattern, values):
60 """returns a pattern for this instance. if no pattern is defined
61 returns a default-pattern.
62 """
63 if pattern == None:
64 if self.BlendPattern == None:
65 pattern = self.getBasePattern(values)
66 else:
67 pattern = self.BlendPattern
68 return pattern
69
70 def getTokenName(self, name):
71 """returns the tokenname bound by the start and end token.

Callers 1

blendMethod · 0.95

Calls 1

getBasePatternMethod · 0.95

Tested by

no test coverage detected