Changeset - 3bd2e94cbfc8
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 15 years ago 2011-04-05 12:23:12
marcin@python-works.com
pep8ify
3 files changed with 4 insertions and 8 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/dbmigrate/__init__.py
Show inline comments
 
@@ -32,6 +32,7 @@ from rhodecode.lib.db_manage import DbMa
 

	
 
log = logging.getLogger(__name__)
 

	
 

	
 
class UpgradeDb(BasePasterCommand):
 
    """Command used for paster to upgrade our database to newer version
 
    """
 
@@ -57,8 +58,6 @@ class UpgradeDb(BasePasterCommand):
 

	
 
        dbmanage.upgrade()
 

	
 

	
 

	
 
    def update_parser(self):
 
        self.parser.add_option('--sql',
 
                      action='store_true',
rhodecode/lib/dbmigrate/migrate/changeset/__init__.py
Show inline comments
 
@@ -12,7 +12,8 @@ from sqlalchemy import __version__ as _s
 

	
 
warnings.simplefilter('always', DeprecationWarning)
 

	
 
_sa_version = tuple(int(re.match("\d+", x).group(0)) for x in _sa_version.split("."))
 
_sa_version = tuple(int(re.match("\d+", x).group(0))
 
                    for x in _sa_version.split("."))
 
SQLA_06 = _sa_version >= (0, 6)
 

	
 
del re
rhodecode/lib/dbmigrate/migrate/exceptions.py
Show inline comments
 
@@ -71,11 +71,6 @@ class InvalidScriptError(ScriptError):
 
    """Invalid script error."""
 

	
 

	
 
class InvalidVersionError(Error):
 
    """Invalid version error."""
 

	
 
# migrate.changeset
 

	
 
class NotSupportedError(Error):
 
    """Not supported error"""
 

	
 
@@ -83,5 +78,6 @@ class NotSupportedError(Error):
 
class InvalidConstraintError(Error):
 
    """Invalid constraint error"""
 

	
 

	
 
class MigrateDeprecationWarning(DeprecationWarning):
 
    """Warning for deprecated features in Migrate"""
0 comments (0 inline, 0 general)