#221 Fix deprecation import for flask sqlalchemy
Merged 11 months ago by jkaluza. Opened 11 months ago by cqi.
cqi/odcs fix-import  into  master

file modified
+1 -1

@@ -28,7 +28,7 @@ 

  from odcs.server.events import cache_composes_if_state_changed

  from odcs.server.events import start_to_publish_messages

  

- from flask.ext.sqlalchemy import SignallingSession

+ from flask_sqlalchemy import SignallingSession

  from mock import patch

  

  

Import from flask.ext.sqlalchemy has been deprecated. This fix is
helpful to supporess the deprecation warning and avoid import error once
newer flask_sqlalchemy version 2.3.2 is installed, in which version
flask.ext.sqlalchemy is replaced with flask_sqlalchemy.

Signed-off-by: Chenxiong Qi cqi@redhat.com

Pull-Request has been merged by jkaluza

11 months ago