Skip to content

Commit eacb277

Browse files
committed
Update version added strings.
1 parent a48c6e9 commit eacb277

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

pymongo/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _set_options(self, **options):
136136
def __get_slave_okay(self):
137137
"""Is it OK to perform queries on a secondary or slave?
138138
139-
.. versionadded:: 1.11+
139+
.. versionadded:: 2.0
140140
"""
141141
return self.__slave_okay
142142

@@ -149,7 +149,7 @@ def __set_slave_okay(self, value):
149149
def __get_safe(self):
150150
"""Use getlasterrer with every write operation?
151151
152-
.. versionadded:: 1.11+
152+
.. versionadded:: 2.0
153153
"""
154154
return self.__safe
155155

@@ -163,7 +163,7 @@ def get_lasterror_options(self):
163163
"""Returns a dict of the getlasterror options set
164164
on this instance.
165165
166-
.. versionadded:: 1.11+
166+
.. versionadded:: 2.0
167167
"""
168168
return self.__safe_opts.copy()
169169

@@ -177,7 +177,7 @@ def set_lasterror_options(self, **kwargs):
177177
- `**kwargs`: Options should be passed as keyword
178178
arguments (e.g. w=2, fsync=True)
179179
180-
.. versionadded:: 1.11+
180+
.. versionadded:: 2.0
181181
"""
182182
for key, value in kwargs.iteritems():
183183
self.__set_safe_option(key, value)
@@ -191,7 +191,7 @@ def unset_lasterror_options(self, *options):
191191
:Parameters:
192192
- `*options`: The list of options to unset.
193193
194-
.. versionadded:: 1.11+
194+
.. versionadded:: 2.0
195195
"""
196196
if len(options):
197197
for option in options:

pymongo/connection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def __init__(self, host=None, port=None, max_pool_size=10,
237237
attempt to find all members of the set.
238238
239239
.. seealso:: :meth:`end_request`
240-
.. versionchanged:: 1.11+
240+
.. versionchanged:: 2.0
241241
`slave_okay` is a pure keyword argument. Added support for safe,
242242
and getlasterror options as keyword arguments.
243243
.. versionchanged:: 1.11
@@ -994,7 +994,7 @@ def is_locked(self):
994994
are blocked, although read operations may still be allowed.
995995
Use :meth:`~pymongo.connection.Connection.unlock` to unlock.
996996
997-
.. versionadded:: 1.11+
997+
.. versionadded:: 2.0
998998
"""
999999
ops = self.admin.current_op()
10001000
return bool(ops.get('fsyncLock', 0))
@@ -1015,14 +1015,14 @@ def fsync(self, **kwargs):
10151015
on Windows and will raise an exception on that
10161016
platform.
10171017
1018-
.. versionadded:: 1.11+
1018+
.. versionadded:: 2.0
10191019
"""
10201020
self.admin.command("fsync", **kwargs)
10211021

10221022
def unlock(self):
10231023
"""Unlock a previously locked server.
10241024
1025-
.. versionadded:: 1.11+
1025+
.. versionadded:: 2.0
10261026
"""
10271027
self.admin['$cmd'].sys.unlock.find_one()
10281028

pymongo/database.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def incoming_manipulators(self):
133133
"""List all incoming SON manipulators
134134
installed on this instance.
135135
136-
.. versionadded:: 1.11+
136+
.. versionadded:: 2.0
137137
"""
138138
return [manipulator.__class__.__name__
139139
for manipulator in self.__incoming_manipulators]
@@ -143,7 +143,7 @@ def incoming_copying_manipulators(self):
143143
"""List all incoming SON copying manipulators
144144
installed on this instance.
145145
146-
.. versionadded:: 1.11+
146+
.. versionadded:: 2.0
147147
"""
148148
return [manipulator.__class__.__name__
149149
for manipulator in self.__incoming_copying_manipulators]
@@ -153,7 +153,7 @@ def outgoing_manipulators(self):
153153
"""List all outgoing SON manipulators
154154
installed on this instance.
155155
156-
.. versionadded:: 1.11+
156+
.. versionadded:: 2.0
157157
"""
158158
return [manipulator.__class__.__name__
159159
for manipulator in self.__outgoing_manipulators]
@@ -163,7 +163,7 @@ def outgoing_copying_manipulators(self):
163163
"""List all outgoing SON copying manipulators
164164
installed on this instance.
165165
166-
.. versionadded:: 1.11+
166+
.. versionadded:: 2.0
167167
"""
168168
return [manipulator.__class__.__name__
169169
for manipulator in self.__outgoing_copying_manipulators]

pymongo/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,5 @@ class InvalidURI(ConfigurationError):
9898
class UnsupportedOption(ConfigurationError):
9999
"""Exception for unsupported options.
100100
101-
.. versionadded:: 1.11+
101+
.. versionadded:: 2.0
102102
"""

0 commit comments

Comments
 (0)