mirror of
https://git.stillkill.net/MinecraftLeak/Mc-cpp-Snapshot.git
synced 2026-10-22 13:22:19 +01:00
Initial commit
This commit is contained in:
commit
a9c1b8fcb6
2100 files changed
+610164
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import collections
|
||||
|
||||
def flatten(l):
|
||||
for e in l:
|
||||
if isinstance(e, collections.Iterable) and not isinstance(e, basestring):
|
||||
for ee in flatten(e): yield ee
|
||||
else: yield e
|
||||
|
||||
def toParameters(l):
|
||||
return ",".join(map(str, flatten(l)))
|
||||
|
||||
def call(name, *l):
|
||||
return "%s(%s)\n"%(name, toParameters(l))
|
||||
Reference in new issue
Block a user