[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2372: add precondition_type convenience function

Tahoe-LAFS trac at tahoe-lafs.org
Wed Feb 4 03:19:26 UTC 2015


#2372: add precondition_type convenience function
-------------------------+---------------------------
 Reporter:  daira        |          Owner:  daira
     Type:  enhancement  |         Status:  new
 Priority:  minor        |      Milestone:  undecided
Component:  code         |        Version:  1.10.0
 Keywords:  cleanup      |  Launchpad Bug:
-------------------------+---------------------------
 We have many instances of the pattern:
 {{{
 precondition(isinstance(avariable, atype), avariable)
 }}}
 It may be worth adding a `precondition_type` function so that this can be:
 {{{
 precondition_type(avariable, atype)
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2372>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list