From a197c85f3adfaa89780fe35e1c408be44df1be8b Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Wed, 30 Jul 2025 10:17:06 +0530 Subject: [PATCH] Replace shortened URLs using goog.gl as goog.gl links will no longer be available --- web/package.json | 2 +- web/pgadmin/misc/file_manager/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/package.json b/web/package.json index a28f68aaf..b6584c23c 100644 --- a/web/package.json +++ b/web/package.json @@ -171,7 +171,7 @@ "test:js-coverage": "yarn run test:js-once --collect-coverage", "test:feature": "yarn run bundle && python regression/runtests.py --pkg feature_tests", "test": "yarn run test:js-once && yarn run bundle && python regression/runtests.py", - "pep8": "pycodestyle --config=../.pycodestyle ../docs && pycodestyle --config=../.pycodestyle ../pkg && pycodestyle --config=../.pycodestyle ../tools && pycodestyle --config=../.pycodestyle ../web", + "pep8": "pycodestyle --config=../.pycodestyle ../docs ../pkg ../tools ../web", "auditjs-html": "yarn audit --json | yarn run yarn-audit-html --output ../auditjs.html", "auditjs": "yarn audit --groups dependencies", "auditpy": "safety check --full-report -i 51668 -i 52495", diff --git a/web/pgadmin/misc/file_manager/__init__.py b/web/pgadmin/misc/file_manager/__init__.py index d2ac26d47..671941097 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://tinyurl.com/yvj4u7fw with codecs.open(file, 'r', encoding='latin-1') as fileObj: while True: # 4MB chunk (4 * 1024 * 1024 Bytes) @@ -740,7 +740,7 @@ class Filemanager(): """ 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))