From 11c3104d029d85948b18bea2fa00bde7c6d37bc5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 20 Nov 2019 14:41:14 +0000 Subject: move things like IRCBot.VERSION to before imports (for utils.http) --- src/IRCBot.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/IRCBot.py b/src/IRCBot.py index bd00b0d6..9d354245 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -1,13 +1,14 @@ +VERSION: str = "" +with open("VERSION", "r") as version_file: + VERSION = "v%s" % version_file.read().strip() +SOURCE: str = "https://git.io/bitbot" +URL: str = "https://bitbot.dev" + import enum, queue, os, queue, select, socket, sys, threading, time, traceback import typing, uuid from src import EventManager, Exports, IRCServer, Logging, ModuleManager from src import PollHook, PollSource, Socket, Timers, utils -with open("VERSION", "r") as version_file: - VERSION = "v%s" % version_file.read().strip() -SOURCE = "https://git.io/bitbot" -URL = "https://bitbot.dev" - class TriggerResult(enum.Enum): Return = 1 Exception = 2 -- cgit v1.3.1-10-gc9f91