forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-video/griffith: fixes cannot import name InstrumentationManager
Closes: https://bugs.gentoo.org/665068 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Πέτρος Σιλιγκούνας <[email protected]> Closes: gentoo#9763 Signed-off-by: Lars Wendler <[email protected]>
- Loading branch information
1 parent
826c96c
commit 8a9a636
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- a/griffith-0.13/lib/db/validators.py 2018-09-02 00:37:03.052248916 +0300 | ||
+++ b/griffith-0.13/lib/db/validators.py 2018-09-02 00:37:22.462248580 +0300 | ||
@@ -23,7 +23,13 @@ | ||
|
||
import logging | ||
|
||
-from sqlalchemy.orm.interfaces import AttributeExtension, InstrumentationManager | ||
+from sqlalchemy.orm.interfaces import AttributeExtension | ||
+try: | ||
+ # sql alchemy 0.8 (and above) | ||
+ from sqlalchemy.ext.instrumentation import InstrumentationManager | ||
+except: | ||
+ # sql alchemy 0.7 | ||
+ from sqlalchemy.orm.interfaces import InstrumentationManager | ||
from sqlalchemy.orm import ColumnProperty | ||
from sqlalchemy.types import String | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters