pgAdmin 4 commit: Fix file type detection for Python 2.6. Fixes #1330

From: Dave Page <dpage(at)pgadmin(dot)org>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Fix file type detection for Python 2.6. Fixes #1330
Date: 2016-06-13 15:35:14
Message-ID: E1bCTtS-0002Zm-F3@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fix file type detection for Python 2.6. Fixes #1330

To find out the type of file selected using FileManager in query tool, we use bitwise OR( | ) on two sets which is not working on python-2.6.9 version.
Now we took list of elements instead of sets to fix the issue.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=677008af10d93d8b11b9a88341c5d69ff9c7e68b
Author: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>

Modified Files
--------------
web/pgadmin/tools/sqleditor/__init__.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2016-06-13 15:35:23 Re: [pgAdmin4][Patch]: RM#1330 - Syntax error while running pgadmin_beta with python2.6.9
Previous Message Dave Page 2016-06-13 15:24:57 pgAdmin 4 commit: Fix "global name 'execfile' not defined".