-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c385759
commit 9b8cadc
Showing
3 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ | |
|
||
|
||
class Report(object): | ||
def __init__(self): | ||
def __init__(self, log_level): | ||
self.log_level = log_level | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
slgobinath
Author
Contributor
|
||
self.problem_count = 0 | ||
self.warning_count = 0 | ||
self.information_count = 0 | ||
|
@@ -34,7 +35,7 @@ def __iter__(self): | |
class Record(Report): | ||
def __init__(self, log_level, message, start_line=-1, end_line=-1, start_char_position=-1, | ||
end_char_position=-1): | ||
self.log_level = log_level | ||
super().__init__(log_level) | ||
self.message = message | ||
self.start_line = start_line | ||
self.end_line = end_line | ||
|
Why does a Report have a log level? Doesn't make sense to me, please explain.