debian/0000755000000000000000000000000012161126753007172 5ustar debian/changelog0000644000000000000000000000032612161126743011044 0ustar bunch (1.0.1-1) unstable; urgency=low * Initial release. (Closes: #705950) * Patch out some untyped except statements in the source. -- Simon Chopin Fri, 21 Jun 2013 15:47:45 -0400 debian/docs0000644000000000000000000000001312135531527010037 0ustar README.rst debian/rules0000755000000000000000000000052112156023653010247 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_auto_test: ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) set -e; \ for py in $(shell pyversions -r); do \ $$py -m bunch.test -v; \ done endif override_dh_auto_install: dh_auto_install rm -f debian/python-bunch/usr/lib/python2*/dist-packages/bunch-*.egg-info/SOURCES.txt debian/clean0000644000000000000000000000002112137772273010177 0ustar bunch.egg-info/* debian/watch0000644000000000000000000000011512150456047010220 0ustar version=3 https://pypi.python.org/packages/source/b/bunch/bunch-(.+).tar.gz debian/patches/0000755000000000000000000000000012161126753010621 5ustar debian/patches/fix-except0000644000000000000000000000221412156023653012616 0ustar From: Simon Chopin Date: Wed, 12 Jun 2013 09:16:27 +0200 Subject: Fix unspecified except: blocks Those are bad since they catch every exception out there, including KeyboardInterrupt and the like. . The first block is entirely removed as the two function call are not supposed to raise anything given legit parameters. The second should, according to the method description, only catch KeyError to change them into AttributeError. Forwarded: https://github.com/dsc/bunch/pull/9 --- a/bunch/__init__.py +++ b/bunch/__init__.py @@ -82,10 +82,7 @@ >>> 'hello' in b True """ - try: - return hasattr(self, k) or dict.__contains__(self, k) - except: - return False + return hasattr(self, k) or dict.__contains__(self, k) # only called if k not found in normal places def __getattr__(self, k): @@ -142,7 +139,7 @@ except AttributeError: try: self[k] = v - except: + except KeyError: raise AttributeError(k) else: object.__setattr__(self, k, v) debian/patches/series0000644000000000000000000000001312156023653012027 0ustar fix-except debian/control0000644000000000000000000000153412156277441010605 0ustar Source: bunch Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Simon Chopin Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-setuptools Standards-Version: 3.9.4 X-Python-Version: >= 2.5 Homepage: https://github.com/dsc/bunch/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/bunch/trunk Vcs-Browser: http://anonscm.debian.org/viewsvn/python-modules/packages/bunch/trunk/ Package: python-bunch Architecture: all Depends: ${misc:Depends}, ${python:Depends} Description: Dot-accessible Python dictionary (a la JavaScript objects) Bunch is a subclass of Python's dict that supports attribute-style access, a la JavaScript. . For instance, you can have the following: >>> b = bunch.bunchify({"foo":"bar"} >>> b.foo 'bar' debian/source/0000755000000000000000000000000012161126753010472 5ustar debian/source/format0000644000000000000000000000001412135531527011700 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212156277441010375 0ustar 9 debian/copyright0000644000000000000000000000251212135531527011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: bunch Source: https://github.com/dsc/bunch/ Files: * Copyright: 2010-2012 David Schoonover License: Expat Files: debian/ Copyright: 2013 Simon Chopin License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.