File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ Migration Guide
121121
122122For users upgrading from 2.4.x to 2.5.0:
123123
124- 1. **Python **: Use Python 3.7 +.
124+ 1. **Python **: Use Python 3.10 +.
1251252. **Imports **: Update imports for moved modules (e.g., utilities now in `rethinkdb.utils `).
1261263. **Exceptions **: Replace `Rql* ` with `Reql* `. Adjust error handling for `ReqlAuthError `/`ReqlTimeoutError ` host/port validation.
1271274. **Handshake **: If customizing JSON encoding/decoding during handshake, pass `json_encoder `/`json_decoder ` to `HandshakeV1_0 `.
Original file line number Diff line number Diff line change 2121import warnings
2222
2323from rethinkdb import net
24+ from rethinkdb .ast import expr
2425from rethinkdb .query import (
2526 add ,
2627 and_ ,
158159 "do" : do ,
159160 "epoch_time" : epoch_time ,
160161 "eq" : eq ,
162+ "expr" : expr ,
161163 "error" : error ,
162164 "february" : february ,
163165 "floor" : floor ,
@@ -239,12 +241,10 @@ class Client:
239241 def __init__ (self ):
240242 super ().__init__ ()
241243
242- self .net = net
243-
244244 net .Connection ._r = self
245245 self .connection_type = None
246246
247- self .make_connection = self . net .make_connection
247+ self .make_connection = net .make_connection
248248 self .set_loop_type (None )
249249
250250 def set_loop_type (self , library = None ) -> None :
@@ -279,7 +279,7 @@ def set_loop_type(self, library=None) -> None:
279279 self .connection_type = TwistedConnection
280280
281281 if library is None or self .connection_type is None :
282- self .connection_type = self . net .DefaultConnection
282+ self .connection_type = net .DefaultConnection
283283
284284 def connect (self , * connect_args , ** kwargs ):
285285 """
You can’t perform that action at this time.
0 commit comments