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
121
121
122
122
For users upgrading from 2.4.x to 2.5.0:
123
123
124
- 1. **Python **: Use Python 3.7 +.
124
+ 1. **Python **: Use Python 3.10 +.
125
125
2. **Imports **: Update imports for moved modules (e.g., utilities now in `rethinkdb.utils `).
126
126
3. **Exceptions **: Replace `Rql* ` with `Reql* `. Adjust error handling for `ReqlAuthError `/`ReqlTimeoutError ` host/port validation.
127
127
4. **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 21
21
import warnings
22
22
23
23
from rethinkdb import net
24
+ from rethinkdb .ast import expr
24
25
from rethinkdb .query import (
25
26
add ,
26
27
and_ ,
158
159
"do" : do ,
159
160
"epoch_time" : epoch_time ,
160
161
"eq" : eq ,
162
+ "expr" : expr ,
161
163
"error" : error ,
162
164
"february" : february ,
163
165
"floor" : floor ,
@@ -239,12 +241,10 @@ class Client:
239
241
def __init__ (self ):
240
242
super ().__init__ ()
241
243
242
- self .net = net
243
-
244
244
net .Connection ._r = self
245
245
self .connection_type = None
246
246
247
- self .make_connection = self . net .make_connection
247
+ self .make_connection = net .make_connection
248
248
self .set_loop_type (None )
249
249
250
250
def set_loop_type (self , library = None ) -> None :
@@ -279,7 +279,7 @@ def set_loop_type(self, library=None) -> None:
279
279
self .connection_type = TwistedConnection
280
280
281
281
if library is None or self .connection_type is None :
282
- self .connection_type = self . net .DefaultConnection
282
+ self .connection_type = net .DefaultConnection
283
283
284
284
def connect (self , * connect_args , ** kwargs ):
285
285
"""
You can’t perform that action at this time.
0 commit comments