mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-05-21 00:05:13 +00:00
doc: add REUSE comment header for singleton.py
Comparing our implementation with the one it is based on, they really don't have much more in common than the general idea of the implementation, which afaik can't be copyrighted.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# Based off example from Refactoring Guru:
|
||||
# https://refactoring.guru/design-patterns/singleton/python/example#example-1
|
||||
# Adapted for TagStudio: https://github.com/CyanVoxel/TagStudio
|
||||
# SPDX-FileCopyrightText: (c) TagStudio Contributors
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
|
||||
from threading import Lock
|
||||
|
||||
|
||||
# See also: https://refactoring.guru/design-patterns/singleton/python/example#example-1
|
||||
class Singleton(type):
|
||||
"""A thread-safe implementation of a Singleton."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user