Skip to content

Commit

Permalink
Coding style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
berdav committed Nov 26, 2021
1 parent 79fdd51 commit 65ae939
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions greenpass/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_days(self):

class IT_GreenPassKeyManager(Localized_GreenPassKeyManager):
def __init__(self):
"""Italian localized greenpass strings"""
"""Italian localized greenpass strings."""
self._data = {
1: "Paese di rilascio",
6: "Data di rilascio",
Expand Down Expand Up @@ -241,7 +241,7 @@ def get_date_format():

class DE_GreenPassKeyManager(Localized_GreenPassKeyManager):
def __init__(self):
"""German localized greenpass strings"""
"""German localized greenpass strings."""
self._data = {
1: "Freigabeland",
6: "Veröffentlichungsdatum",
Expand Down Expand Up @@ -296,7 +296,7 @@ def get_date_format():

class EN_GreenPassKeyManager(Localized_GreenPassKeyManager):
def __init__(self):
"""English localized greenpass strings"""
"""English localized greenpass strings."""
self._data = {
1: "Release Country",
6: "Release Date",
Expand Down Expand Up @@ -351,7 +351,7 @@ def get_date_format():

class GreenPassKeyManager(object):
def __init__(self):
"""Dispatch the localized key values"""
"""Dispatch the localized key values."""

def get_localization(self, language="en"):
if language == "it":
Expand Down
10 changes: 5 additions & 5 deletions greenpass/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ def add_remaining_time(self, certtype, certdate, level,
remaining_days, km):
pass

def get_not_yet_valid(self, hours_to_valid):
def get_not_yet_valid(self, hours_to_valid, km):
pass

def get_expired(self, remaining_hours):
def get_expired(self, remaining_hours, km):
pass

def get_hours_left(self, remaining_hours):
def get_hours_left(self, remaining_hours, km):
pass

def get_months_left(self, remaining_hours):
def get_months_left(self, remaining_hours, km):
pass

def dump(self, file=sys.stdout):
Expand All @@ -89,7 +89,7 @@ def dump_cose(self, phdr, uhdr, signature):
def rawdump(self, data):
pass

def print_cert(self, cert, km=GreenPassKeyManager(),
def print_cert(self, cert, kmg=GreenPassKeyManager(),
cachedir='', language=''):
pass

Expand Down

0 comments on commit 65ae939

Please sign in to comment.