From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/javatoolkit/, src/py/
Date: Tue, 8 Aug 2017 20:39:19 +0000 (UTC) [thread overview]
Message-ID: <1502224737.7d1d602b655317b1f7996d2e88943b1924eca511.monsieurp@gentoo> (raw)
commit: 7d1d602b655317b1f7996d2e88943b1924eca511
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 8 20:13:48 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Aug 8 20:38:57 2017 +0000
URL: https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=7d1d602b
change variable name
because cvv is indeed a magic class (except for James)
src/py/class-version-verify.py | 22 ++++++++++------------
src/py/javatoolkit/cvv.py | 3 +--
2 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/src/py/class-version-verify.py b/src/py/class-version-verify.py
index b46d99c..a53b10d 100755
--- a/src/py/class-version-verify.py
+++ b/src/py/class-version-verify.py
@@ -4,13 +4,11 @@
# Copyright(c) 2005, Gentoo Foundation
#
# Licensed under the GNU General Public License, v2
-#
-# $Id$
import os
import sys
from optparse import OptionParser, make_option
-from javatoolkit.cvv import *
+from javatoolkit.cvv import CVVMagic
def main():
@@ -62,35 +60,35 @@ def main():
options.version = int(options.version.split(".")[-1])
- cvv = cvv(options.version)
+ cvv_magic = CVVMagic(options.version)
for arg in args:
if os.path.isfile(arg):
- cvv.do_file(arg)
+ cvv_magic.do_file(arg)
if options.deep and os.path.isdir(arg):
for root, dirs, files in os.walk(arg):
for filename in files:
- cvv.do_file("%s/%s" % (root, filename))
+ cvv_magic.do_file("%s/%s" % (root, filename))
if options.file_only:
- lst = set([set[1] for set in cvv.bad])
+ lst = set([set[1] for set in cvv_magic.bad])
for i in lst:
print(i)
else:
if options.verbose:
- for set in cvv.good:
+ for set in cvv_magic.good:
print("Good: %s %s %s" % set)
if not options.silent:
- for set in cvv.bad:
+ for set in cvv_magic.bad:
print("Bad: %s %s %s" % set)
print("CVV: %s\nChecked: %i Good: %i Bad: %i" %
- (options.version, len(cvv.good) +
- len(cvv.bad), len(cvv.good), len(cvv.bad)))
+ (options.version, len(cvv_magic.good) +
+ len(cvv_magic.bad), len(cvv_magic.good), len(cvv_magic.bad)))
- if len(cvv.bad) > 0:
+ if len(cvv_magic.bad) > 0:
sys.exit(1)
else:
sys.exit(0)
diff --git a/src/py/javatoolkit/cvv.py b/src/py/javatoolkit/cvv.py
index c72cfcc..b5f817e 100644
--- a/src/py/javatoolkit/cvv.py
+++ b/src/py/javatoolkit/cvv.py
@@ -1,7 +1,6 @@
# Copyright 2005, Thomas Matthijs <axxo@gentoo.org>
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: $
import os
import sys
@@ -9,7 +8,7 @@ from struct import unpack
from zipfile import ZipFile
-class cvv:
+class CVVMagic:
def __init__(self, target):
self.target = target
self.good = []
next reply other threads:[~2017-08-08 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 20:39 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-06-19 17:35 [gentoo-commits] proj/javatoolkit:master commit in: src/py/javatoolkit/, src/py/ Miroslav Šulc
2021-06-19 19:12 Miroslav Šulc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502224737.7d1d602b655317b1f7996d2e88943b1924eca511.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox