public inbox for [email protected]
help / color / mirror / Atom feedFrom: Khushboo Vashi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch]: Fixed the TypeError into session.py
Date: Tue, 26 Apr 2016 16:03:59 +0530
Message-ID: <CAFOhELf7EZWNjjdPze295fS33B=db3=Xz8O3nXBWcT+fAopAMw@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
Hi,
Fixed an issue related to Type ( TypeError: 'str' does not support the
buffer interface)
for python3 in the session.py.
Please find attachment for the same.
Thanks,
Khushboo
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[text/x-patch] pgAdmin4_session.patch (532B, 3-pgAdmin4_session.patch)
download | inline diff:
diff --git a/web/pgadmin/utils/session.py b/web/pgadmin/utils/session.py
index 6675e88..f4daefb 100644
--- a/web/pgadmin/utils/session.py
+++ b/web/pgadmin/utils/session.py
@@ -101,7 +101,7 @@ class SqliteSessionStorage(MutableMapping, SessionMixin):
"""
with self._get_conn() as conn:
for row in conn.execute(self._ite_sql):
- yield loads(str(row[0]))
+ yield loads(dumps(row[0]))
def __len__(self):
"""Returns the number of keys stored in this session.
view thread (2+ 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]: Fixed the TypeError into session.py
In-Reply-To: <CAFOhELf7EZWNjjdPze295fS33B=db3=Xz8O3nXBWcT+fAopAMw@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