add from __future__ import with_statement
svn: r13158
This commit is contained in:
		@@ -29,6 +29,7 @@ BSDDBTxn class: Wrapper for BSDDB transaction-oriented methods
 | 
			
		||||
# BSDDBTxn
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
from __future__ import with_statement
 | 
			
		||||
 | 
			
		||||
class BSDDBTxn(object):
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
@@ -30,6 +30,7 @@ undos and redos.
 | 
			
		||||
# Standard python modules
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
from __future__ import with_statement
 | 
			
		||||
import time, os
 | 
			
		||||
import cPickle as pickle
 | 
			
		||||
from bsddb import db
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,28 @@
 | 
			
		||||
#
 | 
			
		||||
# Gramps - a GTK+/GNOME based genealogy program
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2004-2006 Donald N. Allingham
 | 
			
		||||
#
 | 
			
		||||
# This program is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU General Public License as published by
 | 
			
		||||
# the Free Software Foundation; either version 2 of the License, or
 | 
			
		||||
# (at your option) any later version.
 | 
			
		||||
#
 | 
			
		||||
# This program is distributed in the hope that it will be useful,
 | 
			
		||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
# GNU General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program; if not, write to the Free Software
 | 
			
		||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# $Id: upgrade.py 12672 2009-06-16 15:49:17Z gbritton $
 | 
			
		||||
 | 
			
		||||
from __future__ import with_statement
 | 
			
		||||
from gen.db import BSDDBTxn
 | 
			
		||||
 | 
			
		||||
def gramps_upgrade_14(self):
 | 
			
		||||
    """Upgrade database from version 13 to 14."""
 | 
			
		||||
    # This upgrade modifies notes and dates
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user