license headers (& minor misc fixes)

This commit is contained in:
saces 2026-03-11 22:06:44 +01:00
parent d58ea40593
commit c06740b144
32 changed files with 60 additions and 30 deletions

1
smal/.gitignore vendored
View file

@ -1 +1,2 @@
__pycache__
*.egg-info

View file

@ -1 +0,0 @@
from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging
from smal.bot import SMALBot

View file

@ -1 +0,0 @@
from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from .demobot import main

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging
from smal.simple.bot import SMALBot

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from _pygomx import lib, ffi
import click

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from _pygomx import lib, ffi

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from _pygomx import lib, ffi

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging
import asyncio

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging
from .app import SMALApp

View file

@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
class APIError(Exception):
"""Exception raised for api usage errors.
Attributes:
message -- explanation of the error
"""
def __init__(self, message):
self.message = message[4:]
super().__init__(self.message)

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging
from pygomx.simple import _SimpleClient

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import logging
from .app import SMALApp

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
from .smalsetup import smalsetup

View file

@ -1,3 +1,5 @@
# Copyright (C) 2026 saces@c-base.org
# SPDX-License-Identifier: AGPL-3.0-only
import sys
import os
import getpass