From 1ada7ea06e2288714eaf89878b18efda69fd5918 Mon Sep 17 00:00:00 2001 From: mhagger Date: Sun, 27 Jun 2010 20:26:47 +0000 Subject: [PATCH] Formatting. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5208 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/checkout_internal.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/cvs2svn_lib/checkout_internal.py b/cvs2svn_lib/checkout_internal.py index 43e081c8..74ca2a6f 100644 --- a/cvs2svn_lib/checkout_internal.py +++ b/cvs2svn_lib/checkout_internal.py @@ -224,8 +224,9 @@ class DeltaTextRecord(TextRecord): text_record_db[self.pred_id].decrement_refcount(text_record_db) def __str__(self): - return 'DeltaTextRecord(%x -> %x, %d)' \ - % (self.pred_id, self.id, self.refcount,) + return 'DeltaTextRecord(%x -> %x, %d)' % ( + self.pred_id, self.id, self.refcount, + ) class CheckedOutTextRecord(TextRecord): @@ -640,23 +641,25 @@ class _KeywordExpander: self.cvs_rev = cvs_rev def __call__(self, match): - return '$%s: %s $' % \ - (match.group(1), getattr(self, match.group(1).lower())(),) + return '$%s: %s $' % ( + match.group(1), getattr(self, match.group(1).lower())(), + ) def author(self): return Ctx()._metadata_db[self.cvs_rev.metadata_id].original_author def date(self): - return time.strftime(self.date_fmt, - time.gmtime(self.cvs_rev.timestamp)) + return time.strftime(self.date_fmt, time.gmtime(self.cvs_rev.timestamp)) def header(self): - return '%s %s %s %s Exp' % \ - (self.source(), self.cvs_rev.rev, self.date(), self.author()) + return '%s %s %s %s Exp' % ( + self.source(), self.cvs_rev.rev, self.date(), self.author(), + ) def id(self): - return '%s %s %s %s Exp' % \ - (self.rcsfile(), self.cvs_rev.rev, self.date(), self.author()) + return '%s %s %s %s Exp' % ( + self.rcsfile(), self.cvs_rev.rev, self.date(), self.author(), + ) def locker(self): # Handle kvl like kv, as a converted repo is supposed to have no -- 2.11.4.GIT