Skip to content

Commit

Permalink
small code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 7, 2015
1 parent 134a116 commit 0ee209c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/src/file_gridfs/system.py
Expand Up @@ -81,7 +81,7 @@ def create_connection(self, connection_parameters):
# creates a new mongo connection
# for file insertion and then retrieves the correct
# database from it (as the connection)
is_new = int(pymongo.version) >= 3
is_new = int(pymongo.version[0]) >= 3
if is_new: connection = pymongo.MongoClient(hostname, port)
else: connection = pymongo.Connection(hostname, port)
connection_database = connection[database]
Expand Down

0 comments on commit 0ee209c

Please sign in to comment.