Skip to content

Commit 8717e89

Browse files
committed
Enforce no trailing comma due to Python3.5
1 parent 7bc1759 commit 8717e89

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

  • checkbox-ng/plainbox/impl/secure/providers

checkbox-ng/plainbox/impl/secure/providers/v1.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class ProviderContentPlugIn(PlugIn):
9090
The list of loaded units
9191
"""
9292

93+
# fmt: off
9394
def __init__(
9495
self,
9596
filename,
@@ -100,8 +101,11 @@ def __init__(
100101
validate=False,
101102
validation_kwargs=None,
102103
check=True,
103-
context=None,
104+
context=None
104105
):
106+
# Python3.5 compatibility, black would put a trailing comma ^^
107+
# but that is not supported in python3.5. Leave fmt off for now
108+
# fmt: on
105109
start_time = now()
106110
try:
107111
# Inspect the file
@@ -897,6 +901,7 @@ class Provider1(IProvider1):
897901
number of fields involved in basic initialization.
898902
"""
899903

904+
# fmt: off
900905
def __init__(
901906
self,
902907
name,
@@ -916,8 +921,11 @@ def __init__(
916921
validation_kwargs=None,
917922
check=True,
918923
context=None,
919-
sideloaded=False,
924+
sideloaded=False
920925
):
926+
# Python3.5 compatibility, black would put a trailing comma ^^
927+
# but that is not supported in python3.5. Leave fmt off for now
928+
# fmt: on
921929
"""
922930
Initialize a provider with a set of meta-data and directories.
923931
@@ -1021,6 +1029,7 @@ def _setup_translations(self):
10211029
if self._gettext_domain and self._locale_dir:
10221030
gettext.bindtextdomain(self._gettext_domain, self._locale_dir)
10231031

1032+
# fmt: off
10241033
@classmethod
10251034
def from_definition(
10261035
cls,
@@ -1031,8 +1040,11 @@ def from_definition(
10311040
validation_kwargs=None,
10321041
check=True,
10331042
context=None,
1034-
sideloaded=False,
1043+
sideloaded=False
10351044
):
1045+
# Python3.5 compatibility, black would put a trailing comma ^^
1046+
# but that is not supported in python3.5. Leave fmt off for now
1047+
# fmt: on
10361048
"""
10371049
Initialize a provider from Provider1Definition object
10381050
@@ -1967,6 +1979,7 @@ class Provider1PlugIn(PlugIn):
19671979
files
19681980
"""
19691981

1982+
# fmt: off
19701983
def __init__(
19711984
self,
19721985
filename,
@@ -1976,8 +1989,11 @@ def __init__(
19761989
validate=None,
19771990
validation_kwargs=None,
19781991
check=None,
1979-
context=None,
1992+
context=None
19801993
):
1994+
# Python3.5 compatibility, black would put a trailing comma ^^
1995+
# but that is not supported in python3.5. Leave fmt off for now
1996+
# fmt: on
19811997
"""
19821998
Initialize the plug-in with the specified name and external object
19831999
"""

0 commit comments

Comments
 (0)