From 653f476bf587128753460fce942f9058ee4d2bbd Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 20 Jan 2018 20:16:42 +0100 Subject: [PATCH] Small fix --- compiler/api/compiler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 09536c32..c7e8d95c 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -22,7 +22,7 @@ import shutil HOME = "compiler/api" DESTINATION = "pyrogram/api" -notice_path = "NOTICE" +NOTICE_PATH = "NOTICE" SECTION_RE = re.compile(r"---(\w+)---") LAYER_RE = re.compile(r"//\sLAYER\s(\d+)") COMBINATOR_RE = re.compile(r"^([\w.]+)#([0-9a-f]+)\s(?:.*)=\s([\w<>.]+);$", re.MULTILINE) @@ -133,7 +133,7 @@ def start(): with open("{}/template/class.txt".format(HOME)) as f: template = f.read() - with open(notice_path) as f: + with open(NOTICE_PATH) as f: notice = [] for line in f.readlines(): @@ -412,5 +412,5 @@ def start(): if "__main__" == __name__: HOME = "." DESTINATION = "../../pyrogram/api" - notice_path = "../../NOTICE" + NOTICE_PATH = "../../NOTICE" start()