[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#790685: ITP: python-conditional -- conditionally enter a context manager



On Tue, 30 Jun 2015 16:17:04 -0400
Sandro Tosi <morph@debian.org> wrote:

> Package: wnpp
> Severity: wishlist
> Owner: Sandro Tosi <morph@debian.org>
> 
> * Package name    : python-conditional
>   Version         : 1.1
>   Upstream Author : Stefan H. Holek
> * URL             : https://github.com/stefanholek/conditional
> * License         : BSD
>   Programming Lang: Python
>   Description     : conditionally enter a context manager
> 
>  The conditional context manager comes handy when you always want to
> execute a with-block but only conditionally want to apply its context
> manager.

An entire package for just 18 lines of python? 3 of those lines are
docstring. Even if a few packages import it, it doesn't really seem
worth packaging separately. Just wondering.

https://github.com/stefanholek/conditional/blob/master/conditional/conditional.py

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

Attachment: pgpdE2qpN4N6y.pgp
Description: OpenPGP digital signature


Reply to: