Skip to content

Commit 1aed9ec

Browse files
committed
Move src/ to bitbot/
1 parent 9ef732c commit 1aed9ec

File tree

175 files changed

+163
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+163
-161
lines changed

src/Cache.py renamed to bitbot/Cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import hashlib, time, typing, uuid
2-
from src import PollHook
2+
from . import PollHook
33

44
class Cache(PollHook.PollHook):
55
def __init__(self):
File renamed without changes.

src/Control.py renamed to bitbot/Control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import json, os, socket, typing
2-
from src import IRCBot, Logging, PollSource
2+
from . import IRCBot, Logging, PollSource
33

44
class ControlClient(object):
55
def __init__(self, sock: socket.socket):

src/Database.py renamed to bitbot/Database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import json, os, sqlite3, threading, time, typing
2-
from src import Logging, utils
2+
from . import Logging, utils
33

44
sqlite3.register_converter("BOOLEAN", lambda v: bool(int(v)))
55

src/EventManager.py renamed to bitbot/EventManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import itertools, time, traceback, typing
2-
from src import Logging, utils
2+
from . import Logging, utils
33

44
PRIORITY_URGENT = 0
55
PRIORITY_HIGH = 1
File renamed without changes.

src/IRCBot.py renamed to bitbot/IRCBot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import enum, queue, os, queue, select, socket, sys, threading, time, traceback
88
import typing, uuid
9-
from src import EventManager, Exports, IRCServer, Logging, ModuleManager
10-
from src import PollHook, PollSource, Socket, Timers, utils
9+
from . import EventManager, Exports, IRCServer, Logging, ModuleManager
10+
from . import PollHook, PollSource, Socket, Timers, utils
1111

1212
class TriggerResult(enum.Enum):
1313
Return = 1

src/IRCBuffer.py renamed to bitbot/IRCBuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import collections, dataclasses, re, typing
2-
from src import IRCBot, IRCServer, utils
2+
from . import IRCBot, IRCServer, utils
33

44
MAX_LINES = 64
55

src/IRCChannel.py renamed to bitbot/IRCChannel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re, typing, uuid
2-
from src import EventManager, IRCBot, IRCBuffer, IRCLine, IRCObject, IRCServer
3-
from src import IRCUser, utils
2+
from . import EventManager, IRCBot, IRCBuffer, IRCLine, IRCObject, IRCServer
3+
from . import IRCUser, utils
44

55
RE_MODES = re.compile(r"[-+]\w+")
66
SETTING_CACHE_EXPIRATION = 60.0*5.0 # 5 minutes

src/IRCChannels.py renamed to bitbot/IRCChannels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import typing
2-
from src import EventManager, IRCBot, IRCChannel, IRCServer, utils
2+
from . import EventManager, IRCBot, IRCChannel, IRCServer, utils
33

44
class Channels(object):
55
def __init__(self, server: "IRCServer.Server", bot: "IRCBot.Bot",

0 commit comments

Comments
 (0)