Fix license docstring boilerplate spacing
This commit is contained in:
parent
2544579363
commit
568a192c97

@ 12,18 +12,18 @@ from httpapi import fileoffsetreader


from httpapi.sse.private import private_sse_blueprint




"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 8,18 +8,18 @@ from typing import Iterable


from onionrexceptions import PythonVersion


from . import ministry


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 7,18 +7,18 @@ import ipaddress


import logger


from onionrexceptions import NetworkLeak


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 9,18 +9,18 @@ import logger


from utils import identifyhome


from onionrexceptions import ArbitraryCodeExec


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 11,18 +11,18 @@ import filepaths




from . import onboarding


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




_configfile = filepaths.config_file





@ 10,18 +10,18 @@ from onionrtypes import JSONSerializable


from onionrtypes import OnboardingConfig


import config


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 9,18 +9,18 @@ from .. import dbfiles


import onionrcrypto


import onionrvalues


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 5,18 +5,18 @@ Shutdown the node either hard or cleanly


from flask import Blueprint, Response


from flask import g


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




shutdown_bp = Blueprint('shutdown', __name__)





@ 4,18 +4,18 @@


This file handles configuration setting and getting from the HTTP API


"""


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""


from json import JSONDecodeError


import ujson as json





@ 9,18 +9,18 @@ from werkzeug.exceptions import BadRequest


from gevent import spawn




"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 8,18 +8,18 @@ from onionrusers import contactmanager


from flask import Blueprint, Response, request, abort, redirect


from coredb import keydb


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""


friends = Blueprint('friends', __name__)







@ 20,18 +20,18 @@ from onionrutils import bytesconverter


import onionrvalues


from utils import reconstructhash


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




pub_key = onionrcrypto.pub_key.replace('=', '')





@ 6,18 +6,18 @@ import os


import mimetypes


from flask import Blueprint, send_from_directory


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 13,18 +13,18 @@ from . import pluginwhitelist


import config


import logger


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




# Be extremely mindful of this.





@ 7,18 +7,18 @@ from httpapi import httpheaders


from onionrutils import epoch


from lan import getip


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 4,18 +4,18 @@ Load web UI client endpoints into the whitelist from plugins


"""


import onionrplugins


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 3,16 +3,16 @@


server sent event modules, incl a wrapper and endpoints for client + public api


"""


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""





@ 12,18 +12,18 @@ import ujson


from onionrutils.epoch import get_epoch


from .. import wrapper


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




private_sse_blueprint = Blueprint('privatesse', __name__)





@ 7,18 +7,18 @@ from typing import Callable


from flask import Response




"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 4,18 +4,18 @@


API to get current CSS theme for the client web UI


"""


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""


from flask import Blueprint, Response







@ 6,18 +6,18 @@ from onionrutils import bytesconverter


from onionrcrypto import generate


import filepaths


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 6,18 +6,18 @@ import sys


import os


from . import settings, colors


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""


colors = colors.Colors







@ 15,18 +15,18 @@ from utils.readstatic import get_static_dir


import config


from onionrplugins.onionrevents import event as plugin_api_event


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




if not config.get('general.show_notifications', True):





@ 12,18 +12,18 @@ from onionrutils import localcommand


import logger


import config


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 11,18 +11,18 @@ from .quotes import QUOTE


from utils.boxprint import bordered


from utils import logoheader


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 14,18 +14,18 @@ from filepaths import lock_file




import psutil


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 12,18 +12,18 @@ from onionrutils.localcommand import local_command




from .daemonlaunch import geturl


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 17,18 +17,18 @@ import onionrplugins


from onionrplugins import onionrpluginapi


from . import arguments, recommend


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 7,18 +7,18 @@ from difflib import SequenceMatcher


import logger


from . import arguments


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 16,18 +16,18 @@ import keymanager


import onionrcrypto


import onionrvalues


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 8,18 +8,18 @@ import shutil


from utils import identifyhome


import logger


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 17,18 +17,18 @@ import filepaths




from . import daemonlaunch


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""




DEVNULL = subprocess.DEVNULL





@ 6,18 +6,18 @@ from gevent import spawn




from onionrutils import localcommand


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 11,18 +11,18 @@ import filepaths


from onionrplugins import onionrevents


import logger


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 7,18 +7,18 @@ from utils import identifyhome


import onionrvalues


import logger


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


"""









@ 6,18 +6,18 @@ from nacl import signing, encoding




from onionrtypes import UserID, UserIDSecretKey


"""


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.


This program is free software: you can redistribute it and/or modify


it under the terms of the GNU General Public License as published by


the Free Software Foundation, either version 3 of the License, or


(at your option) any later version.




This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.


This program is distributed in the hope that it will be useful,


but WITHOUT ANY WARRANTY; without even the implied warranty of


MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the


GNU General Public License for more details.




You should have received a copy of the GNU General Public License


along with this program. If not, see <https://www.gnu.org/licenses/>.


You should have received a copy of the GNU General Public 