Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def mp(self, n=8, formatting=None):
print(tostring(self, n=n, merge_position=True, formatting=formatting))
def mpc(self, n=8, formatting=None):
print(tostring(self, n=n, merge_position=True, formatting=formatting))
return self
def print(self, n=8, merge_position=False, sort=False, formatting=None, chain=False):
s = tostring(
self,
n=n,
merge_position=merge_position,
sort=sort,
formatting=formatting)
print(s)
if chain:
return self
def pc(self, n=8, formatting=None):
print(tostring(self, n=n, formatting=formatting))
return self
def spc(self, n=30, formatting=None):
print(tostring(self, n=n, sort=True, formatting=formatting))
return self
def __str__(self):
return tostring(self)
def sp(self, n=30, formatting=None):
print(tostring(self, n=n, sort=True, formatting=formatting))
def msp(self, n=30, formatting=None):
print(
tostring(
self,
n=n,
merge_position=True,
sort=True,
formatting=formatting))
def mspc(self, n=30, formatting=None):
print(
tostring(
self,
n=n,
merge_position=True,
sort=True,
formatting=formatting))
return self