Fixed some reported pylint violations.
This commit is contained in:
parent
aec58ac499
commit
dcb4cedf27
|
@ -20,10 +20,12 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
__comment_begining__ = {"java": "/*", "c": "/*", "cpp": "/*", "h": "/*", "hpp": "/*", "html": "<!--", "php": "/*",
|
__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": "/*",
|
__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": "#",
|
__comment__ = {"java": "//", "c": "//", "cpp": "//", "h": "//", "hpp": "//", "pl": "#", "php": "//", "py": "#",
|
||||||
"glsl": "//", "rb": "#", "js": "//", "sql": "--", "tex": "%"}
|
"glsl": "//", "rb": "#", "js": "//", "sql": "--", "tex": "%"}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
#
|
#
|
||||||
# Copyright © 2012-2013 Ejwa Software. All rights reserved.
|
# Copyright © 2013 Ejwa Software. All rights reserved.
|
||||||
#
|
#
|
||||||
# This file is part of gitinspector.
|
# This file is part of gitinspector.
|
||||||
#
|
#
|
||||||
|
@ -21,7 +21,6 @@ from __future__ import unicode_literals
|
||||||
import extensions
|
import extensions
|
||||||
import filtering
|
import filtering
|
||||||
import format
|
import format
|
||||||
import gitinspector
|
|
||||||
import interval
|
import interval
|
||||||
import missing
|
import missing
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -43,7 +42,7 @@ def __read_git_config__(variable, default_value):
|
||||||
return setting
|
return setting
|
||||||
|
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return default_value;
|
return default_value
|
||||||
|
|
||||||
def init(run):
|
def init(run):
|
||||||
missing.set_checkout_missing(__read_git_config__("checkout-missing", False))
|
missing.set_checkout_missing(__read_git_config__("checkout-missing", False))
|
||||||
|
@ -60,11 +59,11 @@ def init(run):
|
||||||
|
|
||||||
since = __read_git_config__("since", None)
|
since = __read_git_config__("since", None)
|
||||||
if since != None:
|
if since != None:
|
||||||
interval.set_since(since);
|
interval.set_since(since)
|
||||||
|
|
||||||
until = __read_git_config__("until", None)
|
until = __read_git_config__("until", None)
|
||||||
if until != None:
|
if until != None:
|
||||||
interval.set_until(until);
|
interval.set_until(until)
|
||||||
|
|
||||||
run.timeline = __read_git_config__("timeline", False)
|
run.timeline = __read_git_config__("timeline", False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue