summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2021-03-11 23:17:19 -0500
committerLex Neva <github.com@lexneva.name>2021-03-11 23:17:19 -0500
commit3b3f890c1256bd7da89da33cc2547d7e8123979c (patch)
tree56ed4104b3c18eaac802e0ba151264ea232b0a6a /lib/utils
parent3dd767917d8e604bf4a1f3b41c5c4fc506fa2b96 (diff)
add copyright headers
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/__init__.py5
-rw-r--r--lib/utils/cache.py5
-rw-r--r--lib/utils/dotdict.py5
-rw-r--r--lib/utils/geometry.py5
-rw-r--r--lib/utils/inkscape.py5
-rw-r--r--lib/utils/io.py5
-rw-r--r--lib/utils/json.py5
-rw-r--r--lib/utils/paths.py5
-rw-r--r--lib/utils/string.py5
-rw-r--r--lib/utils/version.py5
10 files changed, 50 insertions, 0 deletions
diff --git a/lib/utils/__init__.py b/lib/utils/__init__.py
index 2b39da71..b24257be 100644
--- a/lib/utils/__init__.py
+++ b/lib/utils/__init__.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
from .cache import cache
from .dotdict import DotDict
from .geometry import *
diff --git a/lib/utils/cache.py b/lib/utils/cache.py
index 3a2636f2..c0313ebe 100644
--- a/lib/utils/cache.py
+++ b/lib/utils/cache.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
try:
from functools import lru_cache
except ImportError:
diff --git a/lib/utils/dotdict.py b/lib/utils/dotdict.py
index e946ecd4..acd575b9 100644
--- a/lib/utils/dotdict.py
+++ b/lib/utils/dotdict.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
class DotDict(dict):
"""A dict subclass that allows accessing methods using dot notation.
diff --git a/lib/utils/geometry.py b/lib/utils/geometry.py
index f7b49407..1e0c6ad0 100644
--- a/lib/utils/geometry.py
+++ b/lib/utils/geometry.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
import math
from shapely.geometry import LineString
diff --git a/lib/utils/inkscape.py b/lib/utils/inkscape.py
index f89ea447..62442650 100644
--- a/lib/utils/inkscape.py
+++ b/lib/utils/inkscape.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
import sys
from os.path import expanduser, realpath
diff --git a/lib/utils/io.py b/lib/utils/io.py
index 239585f4..26ee72a5 100644
--- a/lib/utils/io.py
+++ b/lib/utils/io.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
import os
import sys
from io import StringIO
diff --git a/lib/utils/json.py b/lib/utils/json.py
index c670a46b..63b3cfb5 100644
--- a/lib/utils/json.py
+++ b/lib/utils/json.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
from flask.json import JSONEncoder
diff --git a/lib/utils/paths.py b/lib/utils/paths.py
index 6dbaf13d..938c5f33 100644
--- a/lib/utils/paths.py
+++ b/lib/utils/paths.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
import sys
import os
from os.path import dirname, realpath
diff --git a/lib/utils/string.py b/lib/utils/string.py
index a7839f7d..cb852ce3 100644
--- a/lib/utils/string.py
+++ b/lib/utils/string.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
def string_to_floats(string, delimiter=","):
"""Convert a string of delimiter-separated floats into a list of floats."""
diff --git a/lib/utils/version.py b/lib/utils/version.py
index 02eb388b..57ef11f0 100644
--- a/lib/utils/version.py
+++ b/lib/utils/version.py
@@ -1,3 +1,8 @@
+# Authors: see git history
+#
+# Copyright (c) 2010 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
import sys
from os.path import isfile, join, realpath