[pgadmin-hackers][Patch] Python 3 compatibility
[pgadmin-hackers][Patch] Python 3 compatibility
Hello
Please find attached a fix for this.
We stumbled on the following error when running tests off of master:
Traceback (most recent call last):
File "web/regression/runtests.py", line 254, in <module>
servers_info = test_utils.get_config_data()
File "/Users/pivotal/workspace/ pgadmin4/web/regression/test_ utils.py", line 72, in get_config_data
if (not srv.has_key('enabled')) or srv['enabled'] == True:
AttributeError: 'dict' object has no attribute 'has_key'
- George & Tira
Re: [pgadmin-hackers][Patch] Python 3 compatibility
От:
Dave Page <dpage@pgadmin.org>
Дата:
Thanks, patch applied.
On Thu, Jan 19, 2017 at 10:12 PM, George Gelashvili
wrote:
> Hello
>
> We stumbled on the following error when running tests off of master:
>
> Traceback (most recent call last):
> File "web/regression/runtests.py", line 254, in
> servers_info = test_utils.get_config_data()
> File "/Users/pivotal/workspace/pgadmin4/web/regression/test_utils.py",
> line 72, in get_config_data
> if (not srv.has_key('enabled')) or srv['enabled'] == True:
> AttributeError: 'dict' object has no attribute 'has_key'
>
> Please find attached a fix for this.
>
> - George & Tira
>
>
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company