- Fix work with py 2.6

PR:		143070
Submitted by:	Edmondas Girkantas <eg@fbsd.lt>
This commit is contained in:
Martin Wilke
2010-01-25 08:55:35 +00:00
parent 599a91734a
commit ea4e306b4e
3 changed files with 37 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
PORTNAME= gadfly
PORTVERSION= 1.0.0
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= SF

View File

@@ -0,0 +1,34 @@
--- gadfly/bindings.py.orig 2010-01-21 23:10:47.000000000 +0200
+++ gadfly/bindings.py 2010-01-21 23:11:28.000000000 +0200
@@ -61,7 +61,7 @@
# create view statement stuff
def createview(l, c):
- [create, view, name, namelist, as, selection] = l
+ [create, view, name, namelist, as_, selection] = l
return semantics.CreateView(name, namelist, selection)
optnamelist0 = returnNone
@@ -288,11 +288,11 @@
return others
def trl1as(l,c):
- [name, as, alias] = l
+ [name, as_, alias] = l
return [(name, alias)]
def trlnas(l,c):
- [name, as, alias, comma, others] = l
+ [name, as_, alias, comma, others] = l
others.insert(0, (name, alias))
return others
@@ -546,7 +546,7 @@
return (exp, None) # no binding!
def selectname(list, context):
- [exp, as, alias] = list
+ [exp, as_, alias] = list
return (exp, alias)
colalias = elt0

View File

@@ -4,6 +4,8 @@ bin/gfserver
%%PYTHON_SITELIBDIR%%/gadfly/__init__.pyc
%%PYTHON_SITELIBDIR%%/gadfly/__init__.pyo
%%PYTHON_SITELIBDIR%%/gadfly/bindings.py
%%PYTHON_SITELIBDIR%%/gadfly/bindings.pyc
%%PYTHON_SITELIBDIR%%/gadfly/bindings.pyo
%%PYTHON_SITELIBDIR%%/gadfly/client.py
%%PYTHON_SITELIBDIR%%/gadfly/client.pyc
%%PYTHON_SITELIBDIR%%/gadfly/client.pyo