public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:repoman commit in: pym/repoman/, pym/repoman/checks/herds/, pym/repoman/modules/commit/
@ 2014-06-03 11:44 Tom Wijsman
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Wijsman @ 2014-06-03 11:44 UTC (permalink / raw
  To: gentoo-commits

commit:     160508618c8515f56663d48158d15a139467b4fd
Author:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 11:42:39 2014 +0000
Commit:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
CommitDate: Tue Jun  3 11:42:39 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=16050861

repoman: Fix up pyflakes imports and undefined functions or values

---
 pym/repoman/_xml.py                      |  5 +----
 pym/repoman/checks/herds/herdbase.py     |  2 ++
 pym/repoman/copyrights.py                | 10 ++++------
 pym/repoman/modules/commit/repochecks.py |  2 --
 pym/repoman/profile.py                   |  3 ++-
 5 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/pym/repoman/_xml.py b/pym/repoman/_xml.py
index 1871875..b97c027 100644
--- a/pym/repoman/_xml.py
+++ b/pym/repoman/_xml.py
@@ -55,7 +55,6 @@ class XmlLint(object):
 		self.binary = None
 		self._check_capable(options, repolevel, repoman_settings)
 
-
 	def _check_capable(self, options, repolevel, repoman_settings):
 		if options.mode == "manifest":
 			return
@@ -71,15 +70,13 @@ class XmlLint(object):
 			# this can be problematic if xmllint changes their output
 			self._is_capable = True
 
-
 	@property
 	def capable(self):
 		return self._is_capable
 
-
 	def check(self, checkdir):
 		if not self.capable:
-			return true
+			return True
 		# xmlint can produce garbage output even on success, so only dump
 		# the ouput when it fails.
 		st, out = repoman_getstatusoutput(

diff --git a/pym/repoman/checks/herds/herdbase.py b/pym/repoman/checks/herds/herdbase.py
index b1ba671..cfa37e4 100644
--- a/pym/repoman/checks/herds/herdbase.py
+++ b/pym/repoman/checks/herds/herdbase.py
@@ -24,6 +24,8 @@ from portage import _encodings, _unicode_encode
 from portage.exception import FileNotFound, ParseError, PermissionDenied
 from portage import os
 
+from repoman.errors import err
+
 __all__ = [
 	"make_herd_base", "get_herd_base"
 ]

diff --git a/pym/repoman/copyrights.py b/pym/repoman/copyrights.py
index 01ce42f..056cfda 100644
--- a/pym/repoman/copyrights.py
+++ b/pym/repoman/copyrights.py
@@ -87,11 +87,11 @@ def update_copyright(fn_path, year, pretend=False):
 		new_header.append(line)
 
 	difflines = 0
-	for line in difflib.unified_diff(
-		[_unicode_decode(line) for line in orig_header],
-		[_unicode_decode(line) for line in new_header],
+	for diffline in difflib.unified_diff(
+		[_unicode_decode(diffline) for diffline in orig_header],
+		[_unicode_decode(diffline) for diffline in new_header],
 		fromfile=fn_path, tofile=fn_path, n=0):
-		util.writemsg_stdout(line, noiselevel=-1)
+		util.writemsg_stdout(diffline, noiselevel=-1)
 		difflines += 1
 	util.writemsg_stdout("\n", noiselevel=-1)
 
@@ -117,5 +117,3 @@ def update_copyright(fn_path, year, pretend=False):
 		else:
 			util.apply_stat_permissions(fn_path, fn_stat)
 	fn_hdl.close()
-
-

diff --git a/pym/repoman/modules/commit/repochecks.py b/pym/repoman/modules/commit/repochecks.py
index d0e2f28..2839864 100644
--- a/pym/repoman/modules/commit/repochecks.py
+++ b/pym/repoman/modules/commit/repochecks.py
@@ -1,9 +1,7 @@
 
-
 from portage.output import red
 
 from repoman.errors import err
-from repoman.vcs import vcs
 from repoman.vcs.vcs import detect_vcs_conflicts
 
 

diff --git a/pym/repoman/profile.py b/pym/repoman/profile.py
index 03e6c24..11b93c7 100644
--- a/pym/repoman/profile.py
+++ b/pym/repoman/profile.py
@@ -1,6 +1,7 @@
 
-from portage import os
 from portage import normalize_path
+from portage import os
+from portage.output import red
 
 
 class ProfileDesc(object):


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/portage:repoman commit in: pym/repoman/, pym/repoman/checks/herds/, pym/repoman/modules/commit/
@ 2015-09-05 21:27 Brian Dolbec
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Dolbec @ 2015-09-05 21:27 UTC (permalink / raw
  To: gentoo-commits

commit:     92cd7f757112bf9f356ce2f76757a979b5cb1e92
Author:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 11:42:39 2014 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sat Sep  5 21:26:57 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=92cd7f75

repoman: Fix up pyflakes imports and undefined functions or values

 pym/repoman/_xml.py                      |  5 +----
 pym/repoman/checks/herds/herdbase.py     |  2 ++
 pym/repoman/copyrights.py                | 10 ++++------
 pym/repoman/modules/commit/repochecks.py |  2 --
 pym/repoman/profile.py                   |  3 ++-
 5 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/pym/repoman/_xml.py b/pym/repoman/_xml.py
index 1871875..b97c027 100644
--- a/pym/repoman/_xml.py
+++ b/pym/repoman/_xml.py
@@ -55,7 +55,6 @@ class XmlLint(object):
 		self.binary = None
 		self._check_capable(options, repolevel, repoman_settings)
 
-
 	def _check_capable(self, options, repolevel, repoman_settings):
 		if options.mode == "manifest":
 			return
@@ -71,15 +70,13 @@ class XmlLint(object):
 			# this can be problematic if xmllint changes their output
 			self._is_capable = True
 
-
 	@property
 	def capable(self):
 		return self._is_capable
 
-
 	def check(self, checkdir):
 		if not self.capable:
-			return true
+			return True
 		# xmlint can produce garbage output even on success, so only dump
 		# the ouput when it fails.
 		st, out = repoman_getstatusoutput(

diff --git a/pym/repoman/checks/herds/herdbase.py b/pym/repoman/checks/herds/herdbase.py
index b1ba671..cfa37e4 100644
--- a/pym/repoman/checks/herds/herdbase.py
+++ b/pym/repoman/checks/herds/herdbase.py
@@ -24,6 +24,8 @@ from portage import _encodings, _unicode_encode
 from portage.exception import FileNotFound, ParseError, PermissionDenied
 from portage import os
 
+from repoman.errors import err
+
 __all__ = [
 	"make_herd_base", "get_herd_base"
 ]

diff --git a/pym/repoman/copyrights.py b/pym/repoman/copyrights.py
index 01ce42f..056cfda 100644
--- a/pym/repoman/copyrights.py
+++ b/pym/repoman/copyrights.py
@@ -87,11 +87,11 @@ def update_copyright(fn_path, year, pretend=False):
 		new_header.append(line)
 
 	difflines = 0
-	for line in difflib.unified_diff(
-		[_unicode_decode(line) for line in orig_header],
-		[_unicode_decode(line) for line in new_header],
+	for diffline in difflib.unified_diff(
+		[_unicode_decode(diffline) for diffline in orig_header],
+		[_unicode_decode(diffline) for diffline in new_header],
 		fromfile=fn_path, tofile=fn_path, n=0):
-		util.writemsg_stdout(line, noiselevel=-1)
+		util.writemsg_stdout(diffline, noiselevel=-1)
 		difflines += 1
 	util.writemsg_stdout("\n", noiselevel=-1)
 
@@ -117,5 +117,3 @@ def update_copyright(fn_path, year, pretend=False):
 		else:
 			util.apply_stat_permissions(fn_path, fn_stat)
 	fn_hdl.close()
-
-

diff --git a/pym/repoman/modules/commit/repochecks.py b/pym/repoman/modules/commit/repochecks.py
index d0e2f28..2839864 100644
--- a/pym/repoman/modules/commit/repochecks.py
+++ b/pym/repoman/modules/commit/repochecks.py
@@ -1,9 +1,7 @@
 
-
 from portage.output import red
 
 from repoman.errors import err
-from repoman.vcs import vcs
 from repoman.vcs.vcs import detect_vcs_conflicts
 
 

diff --git a/pym/repoman/profile.py b/pym/repoman/profile.py
index 03e6c24..11b93c7 100644
--- a/pym/repoman/profile.py
+++ b/pym/repoman/profile.py
@@ -1,6 +1,7 @@
 
-from portage import os
 from portage import normalize_path
+from portage import os
+from portage.output import red
 
 
 class ProfileDesc(object):


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/portage:repoman commit in: pym/repoman/, pym/repoman/checks/herds/, pym/repoman/modules/commit/
@ 2015-09-05 21:48 Brian Dolbec
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Dolbec @ 2015-09-05 21:48 UTC (permalink / raw
  To: gentoo-commits

commit:     4ec62135392e08f38aaec5e27ce6392ce5015fef
Author:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 11:42:39 2014 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sat Sep  5 21:47:35 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=4ec62135

repoman: Fix up pyflakes imports and undefined functions or values

 pym/repoman/_xml.py                      |  5 +----
 pym/repoman/checks/herds/herdbase.py     |  2 ++
 pym/repoman/copyrights.py                | 10 ++++------
 pym/repoman/modules/commit/repochecks.py |  2 --
 pym/repoman/profile.py                   |  3 ++-
 5 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/pym/repoman/_xml.py b/pym/repoman/_xml.py
index 1871875..b97c027 100644
--- a/pym/repoman/_xml.py
+++ b/pym/repoman/_xml.py
@@ -55,7 +55,6 @@ class XmlLint(object):
 		self.binary = None
 		self._check_capable(options, repolevel, repoman_settings)
 
-
 	def _check_capable(self, options, repolevel, repoman_settings):
 		if options.mode == "manifest":
 			return
@@ -71,15 +70,13 @@ class XmlLint(object):
 			# this can be problematic if xmllint changes their output
 			self._is_capable = True
 
-
 	@property
 	def capable(self):
 		return self._is_capable
 
-
 	def check(self, checkdir):
 		if not self.capable:
-			return true
+			return True
 		# xmlint can produce garbage output even on success, so only dump
 		# the ouput when it fails.
 		st, out = repoman_getstatusoutput(

diff --git a/pym/repoman/checks/herds/herdbase.py b/pym/repoman/checks/herds/herdbase.py
index b1ba671..cfa37e4 100644
--- a/pym/repoman/checks/herds/herdbase.py
+++ b/pym/repoman/checks/herds/herdbase.py
@@ -24,6 +24,8 @@ from portage import _encodings, _unicode_encode
 from portage.exception import FileNotFound, ParseError, PermissionDenied
 from portage import os
 
+from repoman.errors import err
+
 __all__ = [
 	"make_herd_base", "get_herd_base"
 ]

diff --git a/pym/repoman/copyrights.py b/pym/repoman/copyrights.py
index 01ce42f..056cfda 100644
--- a/pym/repoman/copyrights.py
+++ b/pym/repoman/copyrights.py
@@ -87,11 +87,11 @@ def update_copyright(fn_path, year, pretend=False):
 		new_header.append(line)
 
 	difflines = 0
-	for line in difflib.unified_diff(
-		[_unicode_decode(line) for line in orig_header],
-		[_unicode_decode(line) for line in new_header],
+	for diffline in difflib.unified_diff(
+		[_unicode_decode(diffline) for diffline in orig_header],
+		[_unicode_decode(diffline) for diffline in new_header],
 		fromfile=fn_path, tofile=fn_path, n=0):
-		util.writemsg_stdout(line, noiselevel=-1)
+		util.writemsg_stdout(diffline, noiselevel=-1)
 		difflines += 1
 	util.writemsg_stdout("\n", noiselevel=-1)
 
@@ -117,5 +117,3 @@ def update_copyright(fn_path, year, pretend=False):
 		else:
 			util.apply_stat_permissions(fn_path, fn_stat)
 	fn_hdl.close()
-
-

diff --git a/pym/repoman/modules/commit/repochecks.py b/pym/repoman/modules/commit/repochecks.py
index d0e2f28..2839864 100644
--- a/pym/repoman/modules/commit/repochecks.py
+++ b/pym/repoman/modules/commit/repochecks.py
@@ -1,9 +1,7 @@
 
-
 from portage.output import red
 
 from repoman.errors import err
-from repoman.vcs import vcs
 from repoman.vcs.vcs import detect_vcs_conflicts
 
 

diff --git a/pym/repoman/profile.py b/pym/repoman/profile.py
index 03e6c24..11b93c7 100644
--- a/pym/repoman/profile.py
+++ b/pym/repoman/profile.py
@@ -1,6 +1,7 @@
 
-from portage import os
 from portage import normalize_path
+from portage import os
+from portage.output import red
 
 
 class ProfileDesc(object):


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/portage:repoman commit in: pym/repoman/, pym/repoman/checks/herds/, pym/repoman/modules/commit/
@ 2015-09-17  3:08 Brian Dolbec
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Dolbec @ 2015-09-17  3:08 UTC (permalink / raw
  To: gentoo-commits

commit:     8938db11ecec3c44f691f0d0b62f5ef90ee58745
Author:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 11:42:39 2014 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Thu Sep 17 03:06:46 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=8938db11

repoman: Fix up pyflakes imports and undefined functions or values

 pym/repoman/_xml.py                      |  5 +----
 pym/repoman/checks/herds/herdbase.py     |  2 ++
 pym/repoman/copyrights.py                | 10 ++++------
 pym/repoman/modules/commit/repochecks.py |  2 --
 pym/repoman/profile.py                   |  3 ++-
 5 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/pym/repoman/_xml.py b/pym/repoman/_xml.py
index 1871875..b97c027 100644
--- a/pym/repoman/_xml.py
+++ b/pym/repoman/_xml.py
@@ -55,7 +55,6 @@ class XmlLint(object):
 		self.binary = None
 		self._check_capable(options, repolevel, repoman_settings)
 
-
 	def _check_capable(self, options, repolevel, repoman_settings):
 		if options.mode == "manifest":
 			return
@@ -71,15 +70,13 @@ class XmlLint(object):
 			# this can be problematic if xmllint changes their output
 			self._is_capable = True
 
-
 	@property
 	def capable(self):
 		return self._is_capable
 
-
 	def check(self, checkdir):
 		if not self.capable:
-			return true
+			return True
 		# xmlint can produce garbage output even on success, so only dump
 		# the ouput when it fails.
 		st, out = repoman_getstatusoutput(

diff --git a/pym/repoman/checks/herds/herdbase.py b/pym/repoman/checks/herds/herdbase.py
index b1ba671..cfa37e4 100644
--- a/pym/repoman/checks/herds/herdbase.py
+++ b/pym/repoman/checks/herds/herdbase.py
@@ -24,6 +24,8 @@ from portage import _encodings, _unicode_encode
 from portage.exception import FileNotFound, ParseError, PermissionDenied
 from portage import os
 
+from repoman.errors import err
+
 __all__ = [
 	"make_herd_base", "get_herd_base"
 ]

diff --git a/pym/repoman/copyrights.py b/pym/repoman/copyrights.py
index 01ce42f..056cfda 100644
--- a/pym/repoman/copyrights.py
+++ b/pym/repoman/copyrights.py
@@ -87,11 +87,11 @@ def update_copyright(fn_path, year, pretend=False):
 		new_header.append(line)
 
 	difflines = 0
-	for line in difflib.unified_diff(
-		[_unicode_decode(line) for line in orig_header],
-		[_unicode_decode(line) for line in new_header],
+	for diffline in difflib.unified_diff(
+		[_unicode_decode(diffline) for diffline in orig_header],
+		[_unicode_decode(diffline) for diffline in new_header],
 		fromfile=fn_path, tofile=fn_path, n=0):
-		util.writemsg_stdout(line, noiselevel=-1)
+		util.writemsg_stdout(diffline, noiselevel=-1)
 		difflines += 1
 	util.writemsg_stdout("\n", noiselevel=-1)
 
@@ -117,5 +117,3 @@ def update_copyright(fn_path, year, pretend=False):
 		else:
 			util.apply_stat_permissions(fn_path, fn_stat)
 	fn_hdl.close()
-
-

diff --git a/pym/repoman/modules/commit/repochecks.py b/pym/repoman/modules/commit/repochecks.py
index d0e2f28..2839864 100644
--- a/pym/repoman/modules/commit/repochecks.py
+++ b/pym/repoman/modules/commit/repochecks.py
@@ -1,9 +1,7 @@
 
-
 from portage.output import red
 
 from repoman.errors import err
-from repoman.vcs import vcs
 from repoman.vcs.vcs import detect_vcs_conflicts
 
 

diff --git a/pym/repoman/profile.py b/pym/repoman/profile.py
index 03e6c24..11b93c7 100644
--- a/pym/repoman/profile.py
+++ b/pym/repoman/profile.py
@@ -1,6 +1,7 @@
 
-from portage import os
 from portage import normalize_path
+from portage import os
+from portage.output import red
 
 
 class ProfileDesc(object):


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-17  3:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 11:44 [gentoo-commits] proj/portage:repoman commit in: pym/repoman/, pym/repoman/checks/herds/, pym/repoman/modules/commit/ Tom Wijsman
  -- strict thread matches above, loose matches on Subject: below --
2015-09-05 21:27 Brian Dolbec
2015-09-05 21:48 Brian Dolbec
2015-09-17  3:08 Brian Dolbec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox