summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2021-01-09 17:54:31 +0100
committerChristopher Arndt2021-01-09 17:54:42 +0100
commita18c06def2c9f3910627146c5aac9f605683d0f0 (patch)
treef17aea59fed4c4c924c938df297993be197bb3ef
parenta5ada798c647705fb4a16feaf7214e972c6646f3 (diff)
downloadaur-a18c06def2c9f3910627146c5aac9f605683d0f0.tar.gz
Remove obsolete patch file
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r--webbrowser-issue31014.diff35
1 files changed, 0 insertions, 35 deletions
diff --git a/webbrowser-issue31014.diff b/webbrowser-issue31014.diff
deleted file mode 100644
index 439742c6ae1..00000000000
--- a/webbrowser-issue31014.diff
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/mu/logic.py b/mu/logic.py
-index ebd9cd2..3625d7c 100644
---- a/mu/logic.py
-+++ b/mu/logic.py
-@@ -1006,6 +1006,21 @@ class Editor:
- else:
- self._view.reset_annotations()
-
-+ def _open_webbrowser(self, url):
-+ if not webbrowser._browsers and sys.version_info[:3] == (3, 7, 0):
-+ # See https://bugs.python.org/issue31014
-+ env_browser = os.environ.get('BROWSER')
-+ if env_browser:
-+ del os.environ['BROWSER']
-+ webbrowser.register_standard_browsers()
-+ if env_browser and env_browser not in webbrowser._browsers:
-+ webbrowser.register(env_browser, None,
-+ webbrowser.GenericBrowser(env_browser),
-+ preferred=True)
-+ if env_browser:
-+ os.environ['BROWSER'] = env_browser
-+ return webbrowser.open_new(url)
-+
- def show_help(self):
- """
- Display browser based help about Mu.
-@@ -1015,7 +1030,7 @@ class Editor:
- url = 'https://codewith.mu/{}/help/{}'.format(language_code,
- major_version)
- logger.info('Showing help at %r.', url)
-- webbrowser.open_new(url)
-+ self._open_webbrowser(url)
-
- def quit(self, *args, **kwargs):
- """