From dcb4cedf275fee81b268e7b6d51732b6485d54c4 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Mon, 1 Jul 2013 00:11:34 +0200 Subject: [PATCH] Fixed some reported pylint violations. --- gitinspector/comment.py | 6 ++++-- gitinspector/config.py | 9 ++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gitinspector/comment.py b/gitinspector/comment.py index bfedc77..00edce1 100644 --- a/gitinspector/comment.py +++ b/gitinspector/comment.py @@ -20,10 +20,12 @@ from __future__ import unicode_literals __comment_begining__ = {"java": "/*", "c": "/*", "cpp": "/*", "h": "/*", "hpp": "/*", "html": "", "php": "/*", - "py": "\"\"\"", "glsl": "*/", "rb": "=end", "js": "*/", "sql": "*/", "tex": "\\end{comment}", "xml": "-->"} + "py": "\"\"\"", "glsl": "*/", "rb": "=end", "js": "*/", "sql": "*/", + "tex": "\\end{comment}", "xml": "-->"} __comment__ = {"java": "//", "c": "//", "cpp": "//", "h": "//", "hpp": "//", "pl": "#", "php": "//", "py": "#", "glsl": "//", "rb": "#", "js": "//", "sql": "--", "tex": "%"} diff --git a/gitinspector/config.py b/gitinspector/config.py index 30c81cf..3a168a3 100644 --- a/gitinspector/config.py +++ b/gitinspector/config.py @@ -1,6 +1,6 @@ # coding: utf-8 # -# Copyright © 2012-2013 Ejwa Software. All rights reserved. +# Copyright © 2013 Ejwa Software. All rights reserved. # # This file is part of gitinspector. # @@ -21,7 +21,6 @@ from __future__ import unicode_literals import extensions import filtering import format -import gitinspector import interval import missing import subprocess @@ -43,7 +42,7 @@ def __read_git_config__(variable, default_value): return setting except IndexError: - return default_value; + return default_value def init(run): missing.set_checkout_missing(__read_git_config__("checkout-missing", False)) @@ -60,11 +59,11 @@ def init(run): since = __read_git_config__("since", None) if since != None: - interval.set_since(since); + interval.set_since(since) until = __read_git_config__("until", None) if until != None: - interval.set_until(until); + interval.set_until(until) run.timeline = __read_git_config__("timeline", False)