forked from alessandrod/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWS
3168 lines (2659 loc) · 120 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Ticket numbers in this file can be looked up by visiting
http://twistedmatrix.com/trac/ticket/<number>
Twisted Core 12.1.0 (2012-06-02)
================================
Features
--------
- The kqueue reactor has been revived. (#1918)
- twisted.python.filepath now provides IFilePath, an interface for
file path objects. (#2176)
- New gtk3 and gobject-introspection reactors have been added.
(#4558)
- gtk and glib reactors now run I/O and scheduled events with lower
priority, to ensure the UI stays responsive. (#5067)
- IReactorTCP.connectTCP() can now accept IPv6 address literals
(although not hostnames) in order to support connecting to IPv6
hosts. (#5085)
- twisted.internet.interfaces.IReactorSocket, a new interface, is now
supported by some reactors to listen on sockets set up by external
software (eg systemd or launchd). (#5248)
- twisted.internet.endpoints.clientFromString now also supports
strings in the form of tcp:example.com:80 and ssl:example.com:4321
(#5358)
- twisted.python.constants.Flags now provides a way to define
collections of flags for bitvector-type uses. (#5384)
- The epoll(7)-based reactor is now the default reactor on Linux.
(#5478)
- twisted.python.runtime.platform.isLinux can be used to check if
Twisted is running on Linux. (#5491)
- twisted.internet.endpoints.serverFromString now recognizes a
"systemd" endpoint type, for listening on a server port inherited
from systemd. (#5575)
- Connections created using twisted.internet.interfaces.IReactorUNIX
now support sending and receiving file descriptors between
different processes. (#5615)
- twisted.internet.endpoints.clientFromString now supports UNIX
client endpoint strings with the path argument specified like
"unix:/foo/bar" in addition to the old style, "unix:path=/foo/bar".
(#5640)
- twisted.protocols.amp.Descriptor is a new AMP argument type which
supports passing file descriptors as AMP command arguments over
UNIX connections. (#5650)
Bugfixes
--------
- twisted.internet.abstract.FileDescriptor implements
twisted.internet.interfaces.IPushProducer instead of
twisted.internet.interfaces.IProducer.
twisted.internet.iocpreactor.abstract.FileHandle implements
twisted.internet.interfaces.IPushProducer instead of
twisted.internet.interfaces.IProducer. (#4386)
- The epoll reactor now supports reading/writing to regular files on
stdin/stdout. (#4429)
- Calling .cancel() on any Twisted-provided client endpoint
(TCP4ClientEndpoint, UNIXClientEndpoint, SSL4ClientEndpoint) now
works as documented, rather than logging an AlreadyCalledError.
(#4710)
- A leak of OVERLAPPED structures in some IOCP error cases has been
fixed. (#5372)
- twisted.internet._pollingfile._PollableWritePipe now checks for
outgoing unicode data in write() and writeSequence() instead of
checkWork(). (#5412)
Improved Documentation
----------------------
- "Working from Twisted's Subversion repository" links to UQDS and
Combinator are now updated. (#5545)
- Added tkinterdemo.py, an example of Tkinter integration. (#5631)
Deprecations and Removals
-------------------------
- The 'unsigned' flag to twisted.scripts.tap2rpm.MyOptions is now
deprecated. (#4086)
- Removed the unreachable _fileUrandom method from
twisted.python.randbytes.RandomFactory. (#4530)
- twisted.persisted.journal is removed, deprecated since Twisted
11.0. (#4805)
- Support for pyOpenSSL 0.9 and older is now deprecated. pyOpenSSL
0.10 or newer will soon be required in order to use Twisted's SSL
features. (#4974)
- backwardsCompatImplements and fixClassImplements are removed from
twisted.python.components, deprecated in 2006. (#5034)
- twisted.python.reflect.macro was removed, deprecated since Twisted
8.2. (#5035)
- twisted.python.text.docstringLStrip, deprecated since Twisted
10.2.0, has been removed (#5036)
- Removed the deprecated dispatch and dispatchWithCallback methods
from twisted.python.threadpool.ThreadPool (deprecated since 8.0)
(#5037)
- twisted.scripts.tapconvert is now deprecated. (#5038)
- twisted.python.reflect's Settable, AccessorType, PropertyAccessor,
Accessor, OriginalAccessor and Summer are now deprecated. (#5451)
- twisted.python.threadpool.ThreadSafeList (deprecated in 10.1) is
removed. (#5473)
- twisted.application.app.initialLog, deprecated since Twisted 8.2.0,
has been removed. (#5480)
- twisted.spread.refpath was deleted, deprecated since Twisted 9.0.
(#5482)
- twisted.python.otp, deprecated since 9.0, is removed. (#5493)
- Removed `dsu`, `moduleMovedForSplit`, and `dict` from
twisted.python.util (deprecated since 10.2) (#5516)
Other
-----
- #2723, #3114, #3398, #4388, #4489, #5055, #5116, #5242, #5380,
#5392, #5447, #5457, #5484, #5489, #5492, #5494, #5512, #5523,
#5558, #5572, #5583, #5593, #5620, #5621, #5623, #5625, #5637,
#5652, #5653, #5656, #5657, #5660, #5673
Twisted Conch 12.1.0 (2012-06-02)
=================================
Features
--------
- twisted.conch.tap now supports cred plugins (#4753)
Bugfixes
--------
- twisted.conch.client.knownhosts now handles errors encountered
parsing hashed entries in a known hosts file. (#5616)
Improved Documentation
----------------------
- Conch examples window.tac and telnet_echo.tac now have better
explanations. (#5590)
Other
-----
- #5580
Twisted Lore 12.1.0 (2012-06-02)
================================
Bugfixes
--------
- twisted.plugins.twisted_lore's MathProcessor plugin is now
associated with the correct implementation module. (#5326)
Twisted Mail 12.1.0 (2012-06-02)
================================
Bugfixes
--------
- twistd mail --auth, broken in 11.0, now correctly connects
authentication to the portal being used (#5219)
Other
-----
- #5686
Twisted Names 12.1.0 (2012-06-02)
=================================
Features
--------
- "twistd dns" secondary server functionality and
twisted.names.secondary now support retrieving zone information
from a master running on a non-standard DNS port. (#5468)
Bugfixes
--------
- twisted.names.dns.DNSProtocol instances no longer throw an
exception when disconnecting. (#5471)
- twisted.names.tap.makeService (thus also "twistd dns") now makes a
DNS server which gives precedence to the hosts file from its
configuration over the remote DNS servers from its configuration.
(#5524)
- twisted.name.cache.CacheResolver now makes sure TTLs on returned
results are never negative. (#5579)
- twisted.names.cache.CacheResolver entries added via the initializer
are now timed out correctly. (#5638)
Improved Documentation
----------------------
- The examples now contain instructions on how to run them and
descriptions in the examples index. (#5588)
Deprecations and Removals
-------------------------
- The deprecated twisted.names.dns.Record_mx.exchange attribute was
removed. (#4549)
Twisted News 12.1.0 (2012-06-02)
================================
Bugfixes
--------
- twisted.news.nntp.NNTPServer now has additional test coverage and
less redundant implementation code. (#5537)
Deprecations and Removals
-------------------------
- The ability to pass a string article to NNTPServer._gotBody and
NNTPServer._gotArticle in t.news.nntp has been deprecated for years
and is now removed. (#4548)
Twisted Pair 12.1.0 (2012-06-02)
================================
No significant changes have been made for this release.
Twisted Runner 12.1.0 (2012-06-02)
==================================
Deprecations and Removals
-------------------------
- ProcessMonitor.active, consistencyDelay, and consistency in
twisted.runner.procmon were deprecated since 10.1 have been
removed. (#5517)
Twisted Web 12.1.0 (2012-06-02)
===============================
Features
--------
- twisted.web.client.Agent and ProxyAgent now support persistent
connections. (#3420)
- Added twisted.web.template.renderElement, a function which renders
an Element to a response. (#5395)
- twisted.web.client.HTTPConnectionPool now ensures that failed
queries on persistent connections are retried, when possible.
(#5479)
- twisted.web.template.XMLFile now supports FilePath objects. (#5509)
- twisted.web.template.renderElement takes a doctype keyword
argument, which will be written as the first line of the response,
defaulting to the HTML5 doctype. (#5560)
Bugfixes
--------
- twisted.web.util.formatFailure now quotes all data in its output to
avoid it being mistakenly interpreted as markup. (#4896)
- twisted.web.distrib now lets distributed servers set the response
message. (#5525)
Deprecations and Removals
-------------------------
- PHP3Script and PHPScript were removed from twisted.web.twcgi,
deprecated since 10.1. Use twcgi.FilteredScript instead. (#5456)
- twisted.web.template.XMLFile's support for file objects and
filenames is now deprecated. Use the new support for FilePath
objects. (#5509)
- twisted.web.server.date_time_string and
twisted.web.server.string_date_time are now deprecated in favor of
twisted.web.http.datetimeToString and twisted.web.
http.stringToDatetime (#5535)
Other
-----
- #4966, #5460, #5490, #5591, #5602, #5609, #5612
Twisted Words 12.1.0 (2012-06-02)
=================================
Bugfixes
--------
- twisted.words.protocols.irc.DccChatFactory.buildProtocol now
returns the protocol object that it creates (#3179)
- twisted.words.im no longer offers an empty threat of a rewrite on
import. (#5598)
Other
-----
- #5555, #5595
Twisted Core 12.0.0 (2012-02-10)
================================
Features
--------
- The interface argument to IReactorTCP.listenTCP may now be an IPv6
address literal, allowing the creation of IPv6 TCP servers. (#5084)
- twisted.python.constants.Names now provides a way to define
collections of named constants, similar to the "enum type" feature
of C or Java. (#5382)
- twisted.python.constants.Values now provides a way to define
collections of named constants with arbitrary values. (#5383)
Bugfixes
--------
- Fixed an obscure case where connectionLost wasn't called on the
protocol when using half-close. (#3037)
- UDP ports handle socket errors better on Windows. (#3396)
- When idle, the gtk2 and glib2 reactors no longer wake up 10 times a
second. (#4376)
- Prevent a rare situation involving TLS transports, where a producer
may be erroneously left unpaused. (#5347)
- twisted.internet.iocpreactor.iocpsupport now has fewer 64-bit
compile warnings. (#5373)
- The GTK2 reactor is now more responsive on Windows. (#5396)
- TLS transports now correctly handle producer registration after the
connection has been lost. (#5439)
- twisted.protocols.htb.Bucket now empties properly with a non-zero
drip rate. (#5448)
- IReactorSSL and ITCPTransport.startTLS now synchronously propagate
errors from the getContext method of context factories, instead of
being capturing them and logging them as unhandled. (#5449)
Improved Documentation
----------------------
- The multicast documentation has been expanded. (#4262)
- twisted.internet.defer.Deferred now documents more return values.
(#5399)
- Show a better starting page at
http://twistedmatrix.com/documents/current (#5429)
Deprecations and Removals
-------------------------
- Remove the deprecated module twisted.enterprise.reflector. (#4108)
- Removed the deprecated module twisted.enterprise.row. (#4109)
- Remove the deprecated module twisted.enterprise.sqlreflector.
(#4110)
- Removed the deprecated module twisted.enterprise.util, as well as
twisted.enterprise.adbapi.safe. (#4111)
- Python 2.4 is no longer supported on any platform. (#5060)
- Removed printTraceback and noOperation from twisted.spread.pb,
deprecated since Twisted 8.2. (#5370)
Other
-----
- #1712, #2725, #5284, #5325, #5331, #5362, #5364, #5371, #5407,
#5427, #5430, #5431, #5440, #5441
Twisted Conch 12.0.0 (2012-02-10)
=================================
Features
--------
- use Python shadow module for authentication if it's available
(#3242)
Bugfixes
--------
- twisted.conch.ssh.transport.messages no longer ends with with old
message IDs on platforms with differing dict() orderings (#5352)
Other
-----
- #5225
Twisted Lore 12.0.0 (2012-02-10)
================================
No significant changes have been made for this release.
Twisted Mail 12.0.0 (2012-02-10)
================================
No significant changes have been made for this release.
Twisted Names 12.0.0 (2012-02-10)
=================================
Bugfixes
--------
- twisted.names.dns.Message now sets the `auth` flag on RRHeader
instances it creates to reflect the authority of the message
itself. (#5421)
Twisted News 12.0.0 (2012-02-10)
================================
No significant changes have been made for this release.
Twisted Pair 12.0.0 (2012-02-10)
================================
No significant changes have been made for this release.
Twisted Runner 12.0.0 (2012-02-10)
==================================
No significant changes have been made for this release.
Twisted Web 12.0.0 (2012-02-10)
===============================
Features
--------
- twisted.web.util.redirectTo now raises TypeError if the URL passed
to it is a unicode string instead of a byte string. (#5236)
- The new class twisted.web.template.CharRef provides support for
inserting numeric character references in output generated by
twisted.web.template. (#5408)
Improved Documentation
----------------------
- The Twisted Web howto now has a section on proxies and reverse
proxies. (#399)
- The web client howto now covers ContentDecoderAgent and links to an
example of its use. (#5415)
Other
-----
- #5404, #5438
Twisted Words 12.0.0 (2012-02-10)
=================================
Improved Documentation
----------------------
- twisted.words.im.basechat now has improved API documentation.
(#2458)
Other
-----
- #5401
Twisted Core 11.1.0 (2011-11-15)
================================
Features
--------
- TCP and TLS transports now support abortConnection() which, unlike
loseConnection(), always closes the connection immediately. (#78)
- Failures received over PB when tracebacks are disabled now display
the wrapped exception value when they are printed. (#581)
- twistd now has a --logger option, allowing the use of custom log
observers. (#638)
- The default reactor is now poll(2) on platforms that support it.
(#2234)
- twisted.internet.defer.inlineCallbacks(f) now raises TypeError when
f returns something other than a generator or uses returnValue as a
non-generator. (#2501)
- twisted.python.usage.Options now supports performing Zsh tab-
completion on demand. Tab-completion for Twisted commands is
supported out-of-the-box on any recent zsh release. Third-party
commands may take advantage of zsh completion by copying the
provided stub file. (#3078)
- twisted.protocols.portforward now uses flow control between its
client and server connections to avoid having to buffer an
unbounded amount of data when one connection is slower than the
other. (#3350)
- On Windows, the select, IOCP, and Gtk2 reactors now implement
IReactorWin32Events (most notably adding support for serial ports
to these reactors). (#4862)
- twisted.python.failure.Failure no longer captures the state of
locals and globals of all stack frames by default, because it is
expensive to do and rarely used. You can pass captureVars=True to
Failure's constructor if you want to capture this data. (#5011)
- twisted.web.client now supports automatic content-decoding via
twisted.web.client.ContentDecoderAgent, gzip being supported for
now. (#5053)
- Protocols may now implement ILoggingContext to customize their
logging prefix. twisted.protocols.policies.ProtocolWrapper and the
endpoints wrapper now take advantage of this feature to ensure the
application protocol is still reflected in logs. (#5062)
- AMP's raw message-parsing performance was increased by
approximately 12%. (#5075)
- Twisted is now installable on PyPy, because some incompatible C
extensions are no longer built. (#5158)
- twisted.internet.defer.gatherResults now accepts a consumeErrors
parameter, with the same meaning as the corresponding argument for
DeferredList. (#5159)
- Added RMD (remove directory) support to the FTP client. (#5259)
- Server factories may now implement ILoggingContext to customize the
name that is logged when the reactor uses one to start listening on
a port. (#5292)
- The implementations of ITransport.writeSequence will now raise
TypeError if passed unicode strings. (#3896)
- iocp reactor now operates correctly on 64 bit Python runtimes.
(#4669)
- twistd ftp now supports the cred plugin. (#4752)
- twisted.python.filepath.FilePath now has an API to retrieve the
permissions of the underlying file, and two methods to determine
whether it is a block device or a socket. (#4813)
- twisted.trial.unittest.TestCase is now compatible with Python 2.7's
assertDictEqual method. (#5291)
Bugfixes
--------
- The IOCP reactor now does not try to erroneously pause non-
streaming producers. (#745)
- Unicode print statements no longer blow up when using Twisted's
logging system. (#1990)
- Process transports on Windows now support the `writeToChild` method
(but only for stdin). (#2838)
- Zsh tab-completion of Twisted commands no longer relies on
statically generated files, but instead generates results on-the-
fly - ensuring accurate tab-completion for the version of Twisted
actually in use. (#3078)
- LogPublishers don't use the global log publisher for reporting
broken observers anymore. (#3307)
- trial and twistd now add the current directory to sys.path even
when running as root or on Windows. mktap, tapconvert, and
pyhtmlizer no longer add the current directory to sys.path. (#3526)
- twisted.internet.win32eventreactor now stops immediately if
reactor.stop() is called from an IWriteDescriptor.doWrite
implementation instead of delaying shutdown for an arbitrary period
of time. (#3824)
- twisted.python.log now handles RuntimeErrors more gracefully, and
always restores log observers after an exception is raised. (#4379)
- twisted.spread now supports updating new-style RemoteCache
instances. (#4447)
- twisted.spread.pb.CopiedFailure will no longer be thrown into a
generator as a (deprecated) string exception but as a
twisted.spread.pb.RemoteException. (#4520)
- trial now gracefully handles the presence of objects in sys.modules
which respond to attributes being set on them by modifying
sys.modules. (#4748)
- twisted.python.deprecate.deprecatedModuleAttribute no longer
spuriously warns twice when used to deprecate a module within a
package. This should make it easier to write unit tests for
deprecated modules. (#4806)
- When pyOpenSSL 0.10 or newer is available, SSL support now uses
Twisted for all I/O and only relies on OpenSSL for cryptography,
avoiding a number of tricky, potentially broken edge cases. (#4854)
- IStreamClientEndpointStringParser.parseStreamClient now correctly
describes how it will be called by clientFromString (#4956)
- twisted.internet.defer.Deferreds are 10 times faster at handling
exceptions raised from callbacks, except when setDebugging(True)
has been called. (#5011)
- twisted.python.filepath.FilePath.copyTo now raises OSError(ENOENT)
if the source path being copied does not exist. (#5017)
- twisted.python.modules now supports iterating over namespace
packages without yielding duplicates. (#5030)
- reactor.spawnProcess now uses the resource module to guess the
maximum possible open file descriptor when /dev/fd exists but gives
incorrect results. (#5052)
- The memory BIO TLS/SSL implementation now supports producers
correctly. (#5063)
- twisted.spread.pb.Broker no longer creates an uncollectable
reference cycle when the logout callback holds a reference to the
client mind object. (#5079)
- twisted.protocols.tls, and SSL/TLS support in general, now do clean
TLS close alerts when disconnecting. (#5118)
- twisted.persisted.styles no longer uses the deprecated allYourBase
function (#5193)
- Stream client endpoints now start (doStart) and stop (doStop) the
factory passed to the connect method, instead of a different
implementation-detail factory. (#5278)
- SSL ports now consistently report themselves as SSL rather than TCP
when logging their close message. (#5292)
- Serial ports now deliver connectionLost to the protocol when
closed. (#3690)
- win32eventreactor now behaves better in certain rare cases in which
it previously would have failed to deliver connection lost
notification to a protocol. (#5233)
Improved Documentation
----------------------
- Test driven development with Twisted and Trial is now documented in
a how-to. (#2443)
- A new howto-style document covering twisted.protocols.amp has been
added. (#3476)
- Added sample implementation of a Twisted push producer/consumer
system. (#3835)
- The "Deferred in Depth" tutorial now includes accurate output for
the deferred_ex2.py example. (#3941)
- The server howto now covers the Factory.buildProtocol method.
(#4761)
- The testing standard and the trial tutorial now recommend the
`assertEqual` form of assertions rather than the `assertEquals` to
coincide with the standard library unittest's preference. (#4989)
- twisted.python.filepath.FilePath's methods now have more complete
API documentation (docstrings). (#5027)
- The Clients howto now uses buildProtocol more explicitly, hopefully
making it easier to understand where Protocol instances come from.
(#5044)
Deprecations and Removals
-------------------------
- twisted.internet.interfaces.IFinishableConsumer is now deprecated.
(#2661)
- twisted.python.zshcomp is now deprecated in favor of the tab-
completion system in twisted.python.usage (#3078)
- The unzip and unzipIter functions in twisted.python.zipstream are
now deprecated. (#3666)
- Options.optStrings, deprecated for 7 years, has been removed. Use
Options.optParameters instead. (#4552)
- Removed the deprecated twisted.python.dispatch module. (#5023)
- Removed the twisted.runner.procutils module that was deprecated in
Twisted 2.3. (#5049)
- Removed twisted.trial.runner.DocTestSuite, deprecated in Twisted
8.0. (#5111)
- twisted.scripts.tkunzip is now deprecated. (#5140)
- Deprecated option --password-file in twistd ftp (#4752)
- mktap, deprecated since Twisted 8.0, has been removed. (#5293)
Other
-----
- #1946, #2562, #2674, #3074, #3077, #3776, #4227, #4539, #4587,
#4619, #4624, #4629, #4683, #4690, #4702, #4778, #4944, #4945,
#4949, #4952, #4957, #4979, #4980, #4987, #4990, #4994, #4995,
#4997, #5003, #5008, #5009, #5012, #5019, #5042, #5046, #5051,
#5065, #5083, #5088, #5089, #5090, #5101, #5108, #5109, #5112,
#5114, #5125, #5128, #5131, #5136, #5139, #5144, #5146, #5147,
#5156, #5160, #5165, #5191, #5205, #5215, #5217, #5218, #5223,
#5243, #5244, #5250, #5254, #5261, #5266, #5273, #5299, #5301,
#5302, #5304, #5308, #5311, #5321, #5322, #5327, #5328, #5332,
#5336
Twisted Conch 11.1.0 (2011-11-15)
=================================
Features
--------
- twisted.conch.ssh.filetransfer.FileTransferClient now handles short
status messages, not strictly allowed by the RFC, but sent by some
SSH implementations. (#3009)
- twisted.conch.manhole now supports CTRL-A and CTRL-E to trigger
HOME and END functions respectively. (#5252)
Bugfixes
--------
- When run from an unpacked source tarball or a VCS checkout, the
bin/conch/ scripts will now use the version of Twisted they are
part of. (#3526)
- twisted.conch.insults.window.ScrolledArea now passes no extra
arguments to object.__init__ (which works on more versions of
Python). (#4197)
- twisted.conch.telnet.ITelnetProtocol now has the correct signature
for its unhandledSubnegotiation() method. (#4751)
- twisted.conch.ssh.userauth.SSHUserAuthClient now more closely
follows the RFC 4251 definition of boolean values when negotiating
for key-based authentication, allowing better interoperability with
other SSH implementations. (#5241)
- twisted.conch.recvline.RecvLine now ignores certain function keys
in its keystrokeReceived method instead of raising an exception.
(#5246)
Deprecations and Removals
-------------------------
- The --user option to `twistd manhole' has been removed as it was
dead code with no functionality associated with it. (#5283)
Other
-----
- #5107, #5256, #5349
Twisted Lore 11.1.0 (2011-11-15)
================================
Bugfixes
--------
- When run from an unpacked source tarball or a VCS checkout,
bin/lore/lore will now use the version of Twisted it is part of.
(#3526)
Deprecations and Removals
-------------------------
- Removed compareMarkPos and comparePosition from lore.tree,
deprecated in Twisted 9.0. (#5127)
Twisted Mail 11.1.0 (2011-11-15)
================================
Features
--------
- twisted.mail.smtp.LOGINCredentials now generates challenges with
":" instead of "\0" for interoperability with Microsoft Outlook.
(#4692)
Bugfixes
--------
- When run from an unpacked source tarball or a VCS checkout,
bin/mail/mailmail will now use the version of Twisted it is part
of. (#3526)
Other
-----
- #4796, #5006
Twisted Names 11.1.0 (2011-11-15)
=================================
Features
--------
- twisted.names.dns.Message now parses records of unknown type into
instances of a new `UnknownType` class. (#4603)
Bugfixes
--------
- twisted.names.dns.Name now detects loops in names it is decoding
and raises an exception. Previously it would follow the loop
forever, allowing a remote denial of service attack against any
twisted.names client or server. (#5064)
- twisted.names.hosts.Resolver now supports IPv6 addresses; its
lookupAddress method now filters them out and its lookupIPV6Address
method is now implemented. (#5098)
Twisted News 11.1.0 (2011-11-15)
================================
No significant changes have been made for this release.
Twisted Pair 11.1.0 (2011-11-15)
================================
No significant changes have been made for this release.
Twisted Runner 11.1.0 (2011-11-15)
==================================
No significant changes have been made for this release.
Twisted Web 11.1.0 (2011-11-15)
===============================
Features
--------
- twisted.web.client.ProxyAgent is a new HTTP/1.1 web client which
adds proxy support. (#1774)
- twisted.web.client.Agent now takes optional connectTimeout and
bindAddress arguments which are forwarded to the subsequent
connectTCP/connectSSL call. (#3450)
- The new class twisted.web.client.FileBodyProducer makes it easy to
upload data in HTTP requests made using the Agent client APIs.
(#4017)
- twisted.web.xmlrpc.XMLRPC now allows its lookupProcedure method to
be overridden to change how XML-RPC procedures are dispatched.
(#4836)
- A new HTTP cookie-aware Twisted Web Agent wrapper is included in
twisted.web.client.CookieAgent (#4922)
- New class twisted.web.template.TagLoader provides an
ITemplateLoader implementation which loads already-created
twisted.web.iweb.IRenderable providers. (#5040)
- The new class twisted.web.client.RedirectAgent adds redirect
support to the HTTP 1.1 client stack. (#5157)
- twisted.web.template now supports HTML tags from the HTML5
standard, including <canvas> and <video>. (#5306)
Bugfixes
--------
- twisted.web.client.getPage and .downloadPage now only fire their
result Deferred after the underlying connection they use has been
closed. (#3796)
- twisted.web.server now omits the default Content-Type header from
NOT MODIFIED responses. (#4156)
- twisted.web.server now responds correctly to 'Expect: 100-continue'
headers, although this is not yet usefully exposed to user code.
(#4673)
- twisted.web.client.Agent no longer raises an exception if a server
responds and closes the connection before the request has been
fully transmitted. (#5013)
- twisted.web.http_headers.Headers now correctly capitalizes the
header names Content-MD5, DNT, ETag, P3P, TE, and X-XSS-Protection.
(#5054)
- twisted.web.template now escapes more inputs to comments which
require escaping in the output. (#5275)
Improved Documentation
----------------------
- The twisted.web.template howto now documents the common idiom of
yielding tag clones from a renderer. (#5286)
- CookieAgent is now documented in the twisted.web.client how-to.
(#5110)
Deprecations and Removals
-------------------------
- twisted.web.google is now deprecated. (#5209)
Other
-----
- #4951, #5057, #5175, #5288, #5316
Twisted Words 11.1.0 (2011-11-15)
=================================
Features
--------
- twisted.words.protocols.irc.IRCClient now uses a PING heartbeat as
a keepalive to avoid losing an IRC connection without being aware
of it. (#5047)
Bugfixes
--------
- twisted.words.protocols.irc.IRCClient now replies only once to
known CTCP queries per message and not at all to unknown CTCP
queries. (#5029)
- IRCClient.msg now determines a safe maximum command length,
drastically reducing the chance of relayed text being truncated on
the server side. (#5176)
Deprecations and Removals
-------------------------
- twisted.words.protocols.irc.IRCClient.me was deprecated in Twisted
9.0 and has been removed. Use IRCClient.describe instead. (#5059)
Other
-----
- #5025, #5330
Twisted Core 11.0.0 (2011-04-01)
================================
Features
--------
- The reactor is not restartable, but it would previously fail to
complain. Now, when you restart an unrestartable reactor, you get
an exception. (#2066)
- twisted.plugin now only emits a short log message, rather than a
full traceback, if there is a problem writing out the dropin cache
file. (#2409)
- Added a 'replacement' parameter to the
'twisted.python.deprecate.deprecated' decorator. This allows
deprecations to unambiguously specify what they have been
deprecated in favor of. (#3047)
- Added access methods to FilePath for FilePath.statinfo's st_ino,
st_dev, st_nlink, st_uid, and st_gid fields. This is in
preparation for the deprecation of FilePath.statinfo. (#4712)
- IPv4Address and UNIXAddress now have a __hash__ method. (#4783)
- twisted.protocols.ftp.FTP.ftp_STOR now catches `FTPCmdError`s
raised by the file writer, and returns the error back to the
client. (#4909)
Bugfixes
--------
- twistd will no longer fail if a non-root user passes --uid 'myuid'
as a command-line argument. Instead, it will emit an error message.
(#3172)
- IOCPReactor now sends immediate completions to the main loop
(#3233)
- trial can now load test methods from multiple classes, even if the
methods all happen to be inherited from the same base class.
(#3383)
- twisted.web.server will now produce a correct Allow header when a
particular render_FOO method is missing. (#3678)
- HEAD requests made to resources whose HEAD handling defaults to
calling render_GET now always receive a response with no body.
(#3684)
- trial now loads decorated test methods whether or not the decorator
preserves the original method name. (#3909)
- t.p.amp.AmpBox.serialize will now correctly consistently complain
when being fed Unicode. (#3931)
- twisted.internet.wxreactor now supports stopping more reliably.
(#3948)
- reactor.spawnProcess on Windows can now handle ASCII-encodable
Unicode strings in the system environment (#3964)
- When C-extensions are not complied for twisted, on python2.4, skip
a test in twisted.internet.test.test_process that may hang due to a
SIGCHLD related problem. Running 'python setup.py build_ext
--inplace' will compile the extension and cause the test to both
run and pass. (#4331)
- twisted.python.logfile.LogFile now raises a descriptive exception
when passed a log directoy which does not exist. (#4701)
- Fixed a bug where Inotify will fail to add a filepatch to watchlist
after it has been added/ignored previously. (#4708)
- IPv4Address and UNIXAddress object comparison operators fixed
(#4817)
- twisted.internet.task.Clock now sorts the list of pending calls
before and after processing each call (#4823)
- ConnectionLost is now in twisted.internet.error.__all__ instead of
twisted.words.protocols.jabber.xmlstream.__all__. (#4856)
- twisted.internet.process now detects the most appropriate mechanism
to use for detecting the open file descriptors on a system, getting
Twisted working on FreeBSD even when fdescfs is not mounted.
(#4881)
- twisted.words.services referenced nonexistent
twisted.words.protocols.irc.IRC_NOSUCHCHANNEL. This has been fixed.
Related code has also received test cases. (#4915)
Improved Documentation
----------------------
- The INSTALL file now lists all of Twisted's dependencies. (#967)
- Added the stopService and startService methods to all finger
example files. (#3375)
- Missing reactor.run() calls were added in the UDP and client howto
documents. (#3834)
- The maxRetries attribute of
twisted.internet.protocols.RetryingClientFactory now has API
documentation. (#4618)
- Lore docs pointed to a template that no longer existed, this has
been fixed. (#4682)
- The `servers` argument to `twisted.names.client.createResolver` now
has more complete API documentation. (#4713)
- Linked to the Twisted endpoints tutorial from the Twisted core
howto list. (#4773)
- The Endpoints howto now links to the API documentation. (#4774)
- The Quotes howto is now more clear in its PYTHONPATH setup
instructions. (#4785)
- The API documentation for DeferredList's fireOnOneCallback
parameter now gives the correct order of the elements of the result
tuple. (#4882)
Deprecations and Removals
-------------------------
- returning a value other than None from IProtocol.dataReceived was
deprecated (#2491)
- Deprecated the --extra option in trial. (#3372)
- twisted.protocols._c_urlarg has been removed. (#4162)
- Remove the --report-profile option for twistd, deprecated since
2007. (#4236)
- Deprecated twisted.persisted.journal. This library is no longer
maintained. (#4298)
- Removed twisted.protocols.loopback.loopback, which has been
deprecated since Twisted 2.5. (#4547)
- __getitem__ __getslice__ and __eq__ (tuple comparison, indexing)
removed from twisted.internet.address.IPv4Address and
twisted.internet.address.UNIXAddress classes UNIXAddress and
IPv4Address properties _bwHack are now deprecated in
twisted.internet.address (#4817)
- twisted.python.reflect.allYourBase is now no longer used, replaced
with inspect.getmro (#4928)
- allYourBase and accumulateBases are now deprecated in favor of
inspect.getmro. (#4946)
Other
-----
- #555, #1982, #2618, #2665, #2666, #4035, #4247, #4567, #4636,
#4717, #4733, #4750, #4821, #4842, #4846, #4853, #4857, #4858,
#4863, #4864, #4865, #4866, #4867, #4868, #4869, #4870, #4871,
#4872, #4873, #4874, #4875, #4876, #4877, #4878, #4879, #4905,
#4906, #4908, #4934, #4955, #4960
Twisted Conch 11.0.0 (2011-04-01)
=================================
Bugfixes
--------
- The transport for subsystem protocols now declares that it
implements ITransport and implements the getHost and getPeer
methods. (#2453)
- twisted.conch.ssh.transport.SSHTransportBase now responds to key
exchange messages at any time during a connection (instead of only
at connection setup). It also queues non-key exchange messages
sent during key exchange to avoid corrupting the connection state.
(#4395)
- Importing twisted.conch.ssh.common no longer breaks pow(base, exp[,
modulus]) when the gmpy package is installed and base is not an
integer. (#4803)
- twisted.conch.ls.lsLine now returns a time string which does not
consider the locale. (#4937)
Improved Documentation
----------------------
- Changed the man page for ckeygen to accurately reflect what it
does, and corrected its synposis so that a second "ckeygen" is not
a required part of the ckeygen command line. (#4738)
Other
-----
- #2112
Twisted Lore 11.0.0 (2011-04-01)
================================
No significant changes have been made for this release.
Twisted Mail 11.0.0 (2011-04-01)
================================
Features
--------
- The `twistd mail` command line now accepts endpoint descriptions
for POP3 and SMTP servers. (#4739)
- The twistd mail plugin now accepts new authentication options via
strcred.AuthOptionMixin. These include --auth, --auth-help, and
authentication type-specific help options. (#4740)
Bugfixes
--------
- twisted.mail.imap4.IMAP4Server now generates INTERNALDATE strings
which do not consider the locale. (#4937)
Improved Documentation
----------------------
- Added a simple SMTP example, showing how to use sendmail. (#4042)
Other
-----
- #4162
Twisted Names 11.0.0 (2011-04-01)