From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BD4281381FA for ; Thu, 15 May 2014 20:30:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F4C6E0B01; Thu, 15 May 2014 20:30:22 +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 A1FD4E0B01 for ; Thu, 15 May 2014 20:30:21 +0000 (UTC) Received: from spoonbill.gentoo.org (unknown [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D1C233EF07 for ; Thu, 15 May 2014 20:30:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 0A4CF1818D for ; Thu, 15 May 2014 20:30:19 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1400185809.e718f376c52f5cc682bc3b2e07081e3ce0861a2d.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/argsparser.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: e718f376c52f5cc682bc3b2e07081e3ce0861a2d X-VCS-Branch: gsoc2014 Date: Thu, 15 May 2014 20:30:19 +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: 98dc0d12-3713-4f5a-8615-e599063a5cd3 X-Archives-Hash: 78ffa89f1ceaa959dfe6eebc6fbc4fc6 commit: e718f376c52f5cc682bc3b2e07081e3ce0861a2d Author: Devan Franchini gentoo org> AuthorDate: Thu May 15 20:30:09 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu May 15 20:30:09 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=e718f376 argsparser.py: Removes OptParser remnants --- layman/argsparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layman/argsparser.py b/layman/argsparser.py index 5b85456..5b94530 100644 --- a/layman/argsparser.py +++ b/layman/argsparser.py @@ -31,7 +31,7 @@ __version__ = "$Id: config.py 286 2007-01-09 17:48:23Z wrobel $" import sys -from argparse import ArgumentParser as OptionParser +from argparse import ArgumentParser from layman.config import BareConfig from layman.constants import OFF @@ -76,7 +76,7 @@ class ArgsParser(BareConfig): self.defaults = self.get_defaults() self.output = self.get_option('output') - self.parser = OptionParser( + self.parser = ArgumentParser( usage = _USAGE) self.parser.add_argument('-H',