File tree 3 files changed +16
-7
lines changed
3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change
1
+ In v0.12.0, we accidentally moved ``BlockingTrioPortal `` from ``trio ``
2
+ to ``trio.hazmat ``. It's now been restored to its proper position.
3
+ (It's still deprecated though, and will issue a warning if you use it.)
Original file line number Diff line number Diff line change 115
115
"0.12.0" ,
116
116
issue = 810 ,
117
117
),
118
+ "BlockingTrioPortal" :
119
+ _deprecate .DeprecatedAttribute (
120
+ _BlockingTrioPortal ,
121
+ "0.12.0" ,
122
+ issue = 810 ,
123
+ instead = from_thread ,
124
+ ),
118
125
}
119
126
120
127
_deprecate .enable_attribute_deprecations (hazmat .__name__ )
143
150
"0.12.0" ,
144
151
issue = 878 ,
145
152
),
146
- "BlockingTrioPortal" :
147
- _deprecate .DeprecatedAttribute (
148
- _BlockingTrioPortal ,
149
- "0.12.0" ,
150
- issue = 810 ,
151
- instead = from_thread ,
152
- ),
153
153
}
154
154
155
155
# Having the public path in .__module__ attributes is important for:
Original file line number Diff line number Diff line change @@ -560,3 +560,9 @@ def worker_thread(token):
560
560
561
561
t = await to_thread_run_sync (worker_thread , token )
562
562
assert t == threading .current_thread ()
563
+
564
+
565
+ def test_BlockingTrioPortal_deprecated_export (recwarn ):
566
+ import trio
567
+ btp = trio .BlockingTrioPortal
568
+ assert btp is BlockingTrioPortal
You can’t perform that action at this time.
0 commit comments