File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+
12.. _handling-uuid-data-example :
23
34Handling UUID Data
@@ -12,7 +13,7 @@ to MongoDB and retrieve them as native :class:`uuid.UUID` objects::
1213 from uuid import uuid4
1314
1415 # use the 'standard' representation for cross-language compatibility.
15- client = MongoClient(uuid_representation=UuidRepresentation.STANDARD )
16+ client = MongoClient(uuidRepresentation='standard' )
1617 collection = client.get_database('uuid_db').get_collection('uuid_coll')
1718
1819 # remove all documents from collection
Original file line number Diff line number Diff line change @@ -342,9 +342,9 @@ def __init__(
342342 speed. 9 is best compression. Defaults to -1.
343343 - `uuidRepresentation`: The BSON representation to use when encoding
344344 from and decoding to instances of :class:`~uuid.UUID`. Valid
345- values are ` pythonLegacy` (the default), ` javaLegacy` ,
346- ` csharpLegacy`, ` standard` and ` unspecified` . New applications
347- should consider setting this to ` standard` for cross language
345+ values are the strings: " pythonLegacy" (the default), " javaLegacy" ,
346+ " csharpLegacy", " standard" and " unspecified" . New applications
347+ should consider setting this to " standard" for cross language
348348 compatibility. See :ref:`handling-uuid-data-example` for details.
349349 - `unicode_decode_error_handler`: The error handler to apply when
350350 a Unicode-related error occurs during BSON decoding that would
You can’t perform that action at this time.
0 commit comments