From 9259dcbd49d6f779c716310c746df2fdc435e296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Tue, 29 Jul 2025 00:56:18 +0200 Subject: [PATCH] replace shortened URLs using goo.gl goo.gl service will go away 2025-08-25 https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/ --- web/pgadmin/misc/file_manager/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/misc/file_manager/__init__.py b/web/pgadmin/misc/file_manager/__init__.py index d2ac26d475d..adabad6bc88 100644 --- a/web/pgadmin/misc/file_manager/__init__.py +++ b/web/pgadmin/misc/file_manager/__init__.py @@ -128,7 +128,7 @@ def read_file_generator(file, enc): # errors will never occur regardless of the configured error and # handles most of the Windows encodings # handler. - # Ref: https://goo.gl/vDhggS + # Ref: https://python-notes.curiousefficiency.org/en/latest/python3/text_file_processing.html with codecs.open(file, 'r', encoding='latin-1') as fileObj: while True: # 4MB chunk (4 * 1024 * 1024 Bytes) @@ -740,7 +740,7 @@ def suspend_windows_warning(): """ Prevents 'there is no disk in drive' waning on windows """ - # StackOverflow Ref: https://goo.gl/9gYdef + # StackOverflow Ref: https://stackoverflow.com/q/29059399/164233 if _platform == "win32": kernel32.SetThreadErrorMode(SEM_FAIL, ctypes.byref(oldmode))