From: Ed Bartosh Date: Fri, 20 Apr 2012 10:38:33 +0000 (+0300) Subject: pylinting: fixed whitespaces X-Git-Tag: 0.5~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b03ed332bd894e3b989913b9abbb1a878e01979;p=tools%2Fgbs.git pylinting: fixed whitespaces Change-Id: I7b0416da1d3f6f9b6f92c413c2b466884f6633c3 --- diff --git a/gitbuildsys/cmd_changelog.py b/gitbuildsys/cmd_changelog.py index 8eb9d5c..3f72722 100644 --- a/gitbuildsys/cmd_changelog.py +++ b/gitbuildsys/cmd_changelog.py @@ -31,7 +31,7 @@ from conf import configmgr from gbp.rpm.git import GitRepositoryError, RpmGitRepository -EDITOR=configmgr.get('editor') or 'vi' +EDITOR = configmgr.get('editor') or 'vi' class Changes(): import re @@ -86,12 +86,12 @@ class Changes(): date_str = date.strftime("%a %b %d %Y") """ first line start with '*' """ if version: - top_entry = ["* %s %s - %s\n" %(date_str, author, version)] + top_entry = ["* %s %s - %s\n" % (date_str, author, version)] else: - top_entry = ["* %s %s\n" %(date_str, author)] + top_entry = ["* %s %s\n" % (date_str, author)] """ every body line start with '-' """ for line in body: - top_entry.append("- %s\n" %line) + top_entry.append("- %s\n" % line) top_entry.append('\n') """ add the new entry to the top of changelog """ @@ -180,8 +180,8 @@ def do(opts, args): if opts.author: log_author = opts.author else: - log_author = "%s <%s>" %(repo.get_config('user.name'), - repo.get_config('user.email')) + log_author = "%s <%s>" % (repo.get_config('user.name'), \ + repo.get_config('user.email')) if opts.version: log_version = opts.version