diff --git a/onionshare/web/receive_mode.py b/onionshare/web/receive_mode.py index b444deb2..d2b03da0 100644 --- a/onionshare/web/receive_mode.py +++ b/onionshare/web/receive_mode.py @@ -8,7 +8,7 @@ from werkzeug.utils import secure_filename from .. import strings -class ReceiveModeWeb(object): +class ReceiveModeWeb: """ All of the web logic for receive mode """ diff --git a/onionshare/web/base_mode.py b/onionshare/web/send_base_mode.py similarity index 97% rename from onionshare/web/base_mode.py rename to onionshare/web/send_base_mode.py index 905414f6..0ca1b306 100644 --- a/onionshare/web/base_mode.py +++ b/onionshare/web/send_base_mode.py @@ -6,12 +6,12 @@ from flask import Response, request, render_template, make_response, send_from_d from .. import strings -class BaseModeWeb(object): +class SendBaseModeWeb: """ - All of the web logic shared between share and website mode + All of the web logic shared between share and website mode (modes where the user sends files) """ def __init__(self, common, web): - super(BaseModeWeb, self).__init__() + super(SendBaseModeWeb, self).__init__() self.common = common self.web = web diff --git a/onionshare/web/share_mode.py b/onionshare/web/share_mode.py index afcbdcd9..1ed8c29a 100644 --- a/onionshare/web/share_mode.py +++ b/onionshare/web/share_mode.py @@ -6,11 +6,11 @@ import mimetypes import gzip from flask import Response, request, render_template, make_response -from .base_mode import BaseModeWeb +from .send_base_mode import SendBaseModeWeb from .. import strings -class ShareModeWeb(BaseModeWeb): +class ShareModeWeb(SendBaseModeWeb): """ All of the web logic for share mode """ diff --git a/onionshare/web/website_mode.py b/onionshare/web/website_mode.py index b8e4dfdf..f38daa06 100644 --- a/onionshare/web/website_mode.py +++ b/onionshare/web/website_mode.py @@ -4,11 +4,11 @@ import tempfile import mimetypes from flask import Response, request, render_template, make_response -from .base_mode import BaseModeWeb +from .send_base_mode import SendBaseModeWeb from .. import strings -class WebsiteModeWeb(BaseModeWeb): +class WebsiteModeWeb(SendBaseModeWeb): """ All of the web logic for website mode """