Skip to content

Instantly share code, notes, and snippets.

@ospalh
Created May 7, 2012 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ospalh/2630334 to your computer and use it in GitHub Desktop.
Save ospalh/2630334 to your computer and use it in GitHub Desktop.
cjklib patch to match sqlalchemy changes
Subject: [PATCH] sqlalchemy.exceptions has been renamed sqlalchemy.exc ages
ago.
---
cjklib/build/__init__.py | 2 +-
cjklib/build/builder.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cjklib/build/__init__.py b/cjklib/build/__init__.py
index 952c084..6f4303b 100644
--- a/cjklib/build/__init__.py
+++ b/cjklib/build/__init__.py
@@ -26,7 +26,7 @@ import locale
import sys
import os.path
-from sqlalchemy.exceptions import OperationalError
+from sqlalchemy.exc import OperationalError
from cjklib import dbconnector
from cjklib import exception
diff --git a/cjklib/build/builder.py b/cjklib/build/builder.py
index a224399..589d5d6 100644
--- a/cjklib/build/builder.py
+++ b/cjklib/build/builder.py
@@ -80,7 +80,7 @@ from sqlalchemy import Table, Column, Integer, String, DateTime, Text, Index
from sqlalchemy import select, union
from sqlalchemy.sql import text, func
from sqlalchemy.sql import or_
-from sqlalchemy.exceptions import IntegrityError, OperationalError
+from sqlalchemy.exc import IntegrityError, OperationalError
from cjklib import characterlookup
from cjklib import exception
--
1.7.7.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment