From d0a5cb1f0ebb0207150514de999efb72827af0d0 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Mon, 16 Dec 2019 10:57:22 +0100 Subject: [PATCH] Minor ratbagd/ratbagc adjustments Bumped copyright to 2019. Fixed typo in profile.capabilities description. only ratbagd.py: Removed vim helper line since the file has a proper file extension. Signed-off-by: Stephan Lachnit --- tools/ratbagc.py.in | 4 ++-- tools/ratbagd.py | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index c0b4f046..af2f7d93 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -1,6 +1,6 @@ # vim: set expandtab shiftwidth=4 tabstop=4: # -# Copyright 2017 Red Hat, Inc. +# Copyright 2017-2019 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), @@ -324,7 +324,7 @@ class RatbagdProfile(metaclass=MetaRatbag): """The capabilities of this profile as an array. Capabilities not present on the profile are not in the list. Thus use e.g. - if RatbagdProfile.CAP_WRITABLE_NAME is in profile.capabilities: + if RatbagdProfile.CAP_WRITABLE_NAME in profile.capabilities: do something """ return self._capabilities diff --git a/tools/ratbagd.py b/tools/ratbagd.py index 0329abac..74fdf1e8 100644 --- a/tools/ratbagd.py +++ b/tools/ratbagd.py @@ -1,6 +1,4 @@ -# vim: set expandtab shiftwidth=4 tabstop=4: -# -# Copyright 2016 Red Hat, Inc. +# Copyright 2016-2019 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), @@ -428,7 +426,7 @@ class RatbagdProfile(_RatbagdDBus): """The capabilities of this profile as an array. Capabilities not present on the profile are not in the list. Thus use e.g. - if RatbagdProfile.CAP_WRITABLE_NAME is in profile.capabilities: + if RatbagdProfile.CAP_WRITABLE_NAME in profile.capabilities: do something """ return self._get_dbus_property("Capabilities") or []