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 615F013800E for ; Fri, 3 Aug 2012 15:04:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4176DE0160; Fri, 3 Aug 2012 15:04:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 14A16E0160 for ; Fri, 3 Aug 2012 15:04:24 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A95F1B4044 for ; Fri, 3 Aug 2012 15:04:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 251BBE543C for ; Fri, 3 Aug 2012 15:04:23 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1344005991.c17fd1b5b4ecfd8baf45fa4d296a45476560249a.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: / X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay.py X-VCS-Directories: / X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: c17fd1b5b4ecfd8baf45fa4d296a45476560249a X-VCS-Branch: master Date: Fri, 3 Aug 2012 15:04:23 +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: 948239ed-a568-4773-9a9f-0022858bed1e X-Archives-Hash: 9846fc455fdf824838758ef41ff4176e commit: c17fd1b5b4ecfd8baf45fa4d296a45476560249a Author: André Erdmann mailerd de> AuthorDate: Fri Aug 3 14:59:51 2012 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Aug 3 14:59:51 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=c17fd1b5 Revert "fix __name__ check in roverlay.py" This reverts commit 05a9261e481711e2b8fc932b2f0f5bc901fd978b. Importing roverlay. doesn't work if __name__ == 'roverlay'. --- roverlay.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/roverlay.py b/roverlay.py index 06cce51..bd250ea 100755 --- a/roverlay.py +++ b/roverlay.py @@ -35,7 +35,7 @@ class DIE ( object ): die = DIE.die -if __name__ not in ( '__main__', 'roverlay' ): +if __name__ != '__main__': die ( "Please don't import this script...", DIE.BAD_USAGE )