Skip to content

Commit

Permalink
Clean up in connect library. PyPI fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ableinc committed Aug 30, 2020
1 parent e095e35 commit 172ee2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion mongrations/ClassType.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from pymongo.database import Database
from pymysql.connections import Connection
from psycopg2.extensions import cursor
try:
from psycopg2.extensions import cursor
except ImportError:
cursor = None
from os import environ

db_type = {
Expand Down
4 changes: 2 additions & 2 deletions mongrations/connect.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from os import environ
from pymongo import MongoClient
import motor.motor_asyncio as motor
try:
import pymysql.cursors
import psycopg2
from pymongo import MongoClient
import motor.motor_asyncio as motor
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion mongrations/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.1'
__version__ = '1.0.2'

0 comments on commit 172ee2b

Please sign in to comment.