From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EC933138A1F for ; Fri, 11 Apr 2014 00:42:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C24D5E0AD1; Fri, 11 Apr 2014 00:41:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 389BDE0AD1 for ; Fri, 11 Apr 2014 00:41:58 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4AC8E34015A for ; Fri, 11 Apr 2014 00:41:57 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2355) id 3F0532004C; Fri, 11 Apr 2014 00:41:55 +0000 (UTC) From: "Samuel Damashek (sdamashek)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, sdamashek@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-python/mock/files: mock-1.0.1-fix-python3.4.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: mock-1.0.1-fix-python3.4.patch X-VCS-Directories: dev-python/mock/files X-VCS-Committer: sdamashek X-VCS-Committer-Name: Samuel Damashek Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20140411004155.3F0532004C@flycatcher.gentoo.org> Date: Fri, 11 Apr 2014 00:41:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c5bdb0ee-437f-4d94-a21f-d3e403fc4ddf X-Archives-Hash: 9aec5e9b1ef8dfb6645ae3474a80d020 sdamashek 14/04/11 00:41:55 Added: mock-1.0.1-fix-python3.4.patch Log: Add python3.4 to PYTHON_COMPAT in mock-1.0.1-r1 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 3C472B56) Revision Changes Path 1.1 dev-python/mock/files/mock-1.0.1-fix-python3.4.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mock/files/mock-1.0.1-fix-python3.4.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mock/files/mock-1.0.1-fix-python3.4.patch?rev=1.1&content-type=text/plain Index: mock-1.0.1-fix-python3.4.patch =================================================================== # Fix test errors with python 3.4 - thanks to Ubuntu developer Barry Warsaw. diff -r d356250e275d mock.py --- a/mock.py Tue Apr 09 14:53:33 2013 +0100 +++ b/mock.py Wed Feb 26 15:12:18 2014 -0500 @@ -239,12 +239,21 @@ funcopy.__name__ = func.__name__ funcopy.__doc__ = func.__doc__ #funcopy.__dict__.update(func.__dict__) - funcopy.__module__ = func.__module__ + try: + funcopy.__module__ = func.__module__ + except AttributeError: + pass if not inPy3k: funcopy.func_defaults = func.func_defaults return - funcopy.__defaults__ = func.__defaults__ - funcopy.__kwdefaults__ = func.__kwdefaults__ + try: + funcopy.__defaults__ = func.__defaults__ + except AttributeError: + pass + try: + funcopy.__kwdefaults__ = func.__kwdefaults__ + except AttributeError: + pass def _callable(obj):