mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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 <stephanlachnit@protonmail.com>
This commit is contained in:
committed by
Filipe Laíns
parent
71b1d66287
commit
d0a5cb1f0e
@@ -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
|
||||
|
||||
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user