aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
Diffstat (limited to 'pathod')
-rw-r--r--pathod/language/__init__.py8
-rw-r--r--pathod/language/exceptions.py1
-rw-r--r--pathod/protocols/__init__.py6
-rw-r--r--pathod/version.py7
4 files changed, 19 insertions, 3 deletions
diff --git a/pathod/language/__init__.py b/pathod/language/__init__.py
index 10da93ba..399baa3e 100644
--- a/pathod/language/__init__.py
+++ b/pathod/language/__init__.py
@@ -7,9 +7,13 @@ import pyparsing as pp
from . import http, http2, websockets, writer, exceptions
-from .exceptions import *
+from .exceptions import RenderError, FileAccessDenied, ParseException
from .base import Settings
-assert Settings # prevent pyflakes from messing with this
+
+__all__ = [
+ "RenderError", "FileAccessDenied", "ParseException",
+ "Settings",
+]
def expand(msg):
diff --git a/pathod/language/exceptions.py b/pathod/language/exceptions.py
index 84ad3c02..eb22bed2 100644
--- a/pathod/language/exceptions.py
+++ b/pathod/language/exceptions.py
@@ -1,4 +1,3 @@
-
class RenderError(Exception):
pass
diff --git a/pathod/protocols/__init__.py b/pathod/protocols/__init__.py
index 1a8c7dab..f8f3008f 100644
--- a/pathod/protocols/__init__.py
+++ b/pathod/protocols/__init__.py
@@ -1 +1,7 @@
from . import http, http2, websockets
+
+__all__ = [
+ "http",
+ "http2",
+ "websockets",
+]
diff --git a/pathod/version.py b/pathod/version.py
index 2da7637d..3441be92 100644
--- a/pathod/version.py
+++ b/pathod/version.py
@@ -4,3 +4,10 @@ from netlib.version import VERSION, IVERSION
NAME = "pathod"
NAMEVERSION = NAME + " " + VERSION
+
+__all__ = [
+ "NAME",
+ "NAMEVERSION",
+ "VERSION",
+ "IVERSION",
+]