1
# Copyright 2009-2014 MongoDB, Inc.
1
# Copyright 2009-2015 MongoDB, Inc.
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
78
71
"""Profile all operations."""
80
version_tuple = (2, 7, 2)
73
version_tuple = (3, 0, 1)
82
75
def get_version_string():
83
if isinstance(version_tuple[-1], basestring):
76
if isinstance(version_tuple[-1], str):
84
77
return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1]
85
78
return '.'.join(map(str, version_tuple))
87
80
version = get_version_string()
88
81
"""Current version of PyMongo."""
83
from pymongo.collection import ReturnDocument
90
84
from pymongo.common import (MIN_SUPPORTED_WIRE_VERSION,
91
85
MAX_SUPPORTED_WIRE_VERSION)
92
from pymongo.connection import Connection
86
from pymongo.cursor import CursorType
93
87
from pymongo.mongo_client import MongoClient
94
88
from pymongo.mongo_replica_set_client import MongoReplicaSetClient
95
from pymongo.replica_set_connection import ReplicaSetConnection
89
from pymongo.operations import (IndexModel,
96
96
from pymongo.read_preferences import ReadPreference
97
from pymongo.write_concern import WriteConcern
99
"""Is the C extension installed?
101
.. versionadded:: 1.5
100
"""Is the C extension installed?"""
104
102
from pymongo import _cmessage