Fixed some reported pylint violations.

This commit is contained in:
Adam Waldenberg 2013-07-01 00:11:34 +02:00
parent aec58ac499
commit dcb4cedf27
2 changed files with 8 additions and 7 deletions

View file

@ -20,10 +20,12 @@
from __future__ import unicode_literals
__comment_begining__ = {"java": "/*", "c": "/*", "cpp": "/*", "h": "/*", "hpp": "/*", "html": "<!--", "php": "/*",
"py": "\"\"\"", "glsl": "/*", "rb": "=begin", "js": "/*", "sql": "/*", "tex": "\\begin{comment}", "xml": "<!--"}
"py": "\"\"\"", "glsl": "/*", "rb": "=begin", "js": "/*", "sql": "/*",
"tex": "\\begin{comment}", "xml": "<!--"}
__comment_end__ = {"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": "%"}

View file

@ -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)