public inbox for [email protected]
help / color / mirror / Atom feedFrom: Khushboo Vashi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch] : Fix PG utilities with Python 2.6
Date: Fri, 15 Jun 2018 16:57:41 +0530
Message-ID: <CAFOhELdCNni62Vrr8swrJ7ySHNSfdEuGNtHLy8yLisZ5BGwM0w@mail.gmail.com> (raw)
Hi,
Please find the attached patch which fixes the PG utilities with python 2.6.
Thanks,
Khushboo
Attachments:
[application/octet-stream] pg_utility_py26_fix.patch (553B, 3-pg_utility_py26_fix.patch)
download | inline diff:
diff --git a/web/pgadmin/misc/bgprocess/processes.py b/web/pgadmin/misc/bgprocess/processes.py
index 44b3362..cb98291 100644
--- a/web/pgadmin/misc/bgprocess/processes.py
+++ b/web/pgadmin/misc/bgprocess/processes.py
@@ -172,7 +172,7 @@ class BatchProcess(object):
csv_writer = csv.writer(
args_csv_io, delimiter=str(','), quoting=csv.QUOTE_MINIMAL
)
- if sys.version_info.major == 2:
+ if sys.version_info[0] == 2:
csv_writer.writerow(
[
a.encode('utf-8')
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin4][Patch] : Fix PG utilities with Python 2.6
In-Reply-To: <CAFOhELdCNni62Vrr8swrJ7ySHNSfdEuGNtHLy8yLisZ5BGwM0w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox