MCPcopy Create free account
hub / github.com/boostorg/build / __init__

Method __init__

test/BoostBuild.py:1159–1166  ·  view source on GitHub ↗
(self, s="")

Source from the content-addressed store, hash-verified

1157
1158class List:
1159 def __init__(self, s=""):
1160 elements = []
1161 if s.__class__ is str:
1162 # Have to handle escaped spaces correctly.
1163 elements = s.replace("\ ", "\001").split()
1164 else:
1165 elements = s
1166 self.l = [e.replace("\001", " ") for e in elements]
1167
1168 def __len__(self):
1169 return len(self.l)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected