mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 00:56:19 +00:00
Pingu!
This commit is contained in:
parent
a926561f76
commit
a8d10443ea
@ -29,6 +29,7 @@ COMBINATOR_RE = re.compile(r"^([\w.]+)#([0-9a-f]+)\s(?:.*)=\s([\w<>.]+);$", re.M
|
|||||||
ARGS_RE = re.compile("[^{](\w+):([\w?!.<>]+)")
|
ARGS_RE = re.compile("[^{](\w+):([\w?!.<>]+)")
|
||||||
FLAGS_RE = re.compile(r"flags\.(\d+)\?")
|
FLAGS_RE = re.compile(r"flags\.(\d+)\?")
|
||||||
FLAGS_RE_2 = re.compile(r"flags\.(\d+)\?([\w<>.]+)")
|
FLAGS_RE_2 = re.compile(r"flags\.(\d+)\?([\w<>.]+)")
|
||||||
|
FLAGS_RE_3 = re.compile(r"flags:#")
|
||||||
|
|
||||||
core_types = ["int", "long", "int128", "int256", "double", "bytes", "string", "Bool"]
|
core_types = ["int", "long", "int128", "int256", "double", "bytes", "string", "Bool"]
|
||||||
|
|
||||||
@ -109,13 +110,8 @@ def start():
|
|||||||
namespace, name = name.split(".") if "." in name else ("", name)
|
namespace, name = name.split(".") if "." in name else ("", name)
|
||||||
args = ARGS_RE.findall(line)
|
args = ARGS_RE.findall(line)
|
||||||
|
|
||||||
# Check if combinator has flags
|
# Pingu!
|
||||||
for i in args:
|
has_flags = not not FLAGS_RE_3.findall(line)
|
||||||
if FLAGS_RE.match(i[1]):
|
|
||||||
has_flags = True
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
has_flags = False
|
|
||||||
|
|
||||||
# Fix file and folder name collision
|
# Fix file and folder name collision
|
||||||
if name == "updates":
|
if name == "updates":
|
||||||
|
Loading…
Reference in New Issue
Block a user