From a7ba446703e8621717b81fe7e9ac6ad79a49f600 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 20 Mar 2020 15:17:45 +0530 Subject: [PATCH] Fixed Unicode character issue causing error on Python2 environment. Fixes #5279 --- docs/en_US/release_notes_4_20.rst | 3 ++- .../servers/databases/schemas/tables/partitions/__init__.py | 2 +- web/pgadmin/tools/schema_diff/__init__.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/en_US/release_notes_4_20.rst b/docs/en_US/release_notes_4_20.rst index 653160a3f..2f1706f78 100644 --- a/docs/en_US/release_notes_4_20.rst +++ b/docs/en_US/release_notes_4_20.rst @@ -23,4 +23,5 @@ Bug fixes | `Issue #4608 `_ - Fixed some accessibility issues in the dialogs. | `Issue #4942 `_ - Fixed chrome driver download utility issue for Ubuntu. | `Issue #5143 `_ - Fix an accessibility issue to maximize the panel for all alertify dialog. -| `Issue #5221 `_ - Improve logic to get the DDL statements as a part of the comparison. \ No newline at end of file +| `Issue #5221 `_ - Improve logic to get the DDL statements as a part of the comparison. +| `Issue #5279 `_ - Fixed Unicode character issue causing error on Python2 environment. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py index 8aaccf13f..2892c0139 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/partitions/__init__.py @@ -495,7 +495,7 @@ class PartitionsView(BaseTableView, DataTypeReader, VacuumSettings, partition_data['default_partition_header'] = \ '-- Create a default partition to prevent the data loss.\n' \ '-- It helps when none of the partitions of a relation\n' \ - '-- matches the inserted data.' + '-- matches the inserted data.' # Create temporary name for partitions for item in source_data['partitions']: diff --git a/web/pgadmin/tools/schema_diff/__init__.py b/web/pgadmin/tools/schema_diff/__init__.py index 14f041e92..23e190ce0 100644 --- a/web/pgadmin/tools/schema_diff/__init__.py +++ b/web/pgadmin/tools/schema_diff/__init__.py @@ -568,7 +568,7 @@ def check_version_compatibility(sid, tid): tar_manager = driver.connection_manager(tar_server.id) if src_manager.server_type != tar_manager.server_type: - return False, gettext('Schema diff does not support the comparison ' + return False, gettext('Schema diff does not support the comparison ' 'between Postgres Server and EDB Postgres ' 'Advanced Server.')