summaryrefslogtreecommitdiff
path: root/examples/python/dbus/list-devices.py
Commit message (Collapse)AuthorAgeFilesLines
* all: update deprecated SPDX license identifiersThomas Haller2021-01-051-1/+1
| | | | | | | | | | | | | | | | These SPDX license identifiers are deprecated ([1]). Update them. [1] https://spdx.org/licenses/ sed \ -e '1 s%^/\* SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+ \*/$%/* SPDX-License-Identifier: \1-or-later */%' \ -e '1,2 s%^\(--\|#\|//\) SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+$%\1 SPDX-License-Identifier: \2-or-later%' \ -i \ $(git grep -l SPDX-License-Identifier -- \ ':(exclude)shared/c-*/' \ ':(exclude)shared/n-*/' \ ':(exclude)shared/systemd/src' \ ':(exclude)src/systemd/src')
* all: changes from python 2 syntax to python3 and removing dead codeSayed Shah2020-08-031-2/+12
| | | | | | | There were python 2 methods that are not used anymore so now it's in python 3. Added helper fuctions so that the code is more clear https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/540
* all: reformat python files with python blackSayed Shah2020-06-151-38/+42
| | | | | | Part of !537. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/537
* examples: remove unused imports from python examplesThomas Haller2020-05-071-1/+1
|
* all: SPDX header conversionLubomir Rintel2019-09-101-14/+1
| | | | | $ find * -type f |xargs perl contrib/scripts/spdx.pl $ git rm contrib/scripts/spdx.pl
* all: drop emacs file variables from source filesThomas Haller2019-06-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | We no longer add these. If you use Emacs, configure it yourself. Also, due to our "smart-tab" usage the editor anyway does a subpar job handling our tabs. However, on the upside every user can choose whatever tab-width he/she prefers. If "smart-tabs" are used properly (like we do), every tab-width will work. No manual changes, just ran commands: F=($(git grep -l -e '-\*-')) sed '1 { /\/\* *-\*- *[mM]ode.*\*\/$/d }' -i "${F[@]}" sed '1,4 { /^\(#\|--\|dnl\) *-\*- [mM]ode/d }' -i "${F[@]}" Check remaining lines with: git grep -e '-\*-' The ultimate purpose of this is to cleanup our files and eventually use SPDX license identifiers. For that, first get rid of the boilerplate lines.
* all: drop trailing spacesThomas Haller2018-02-071-1/+1
|
* python: make dbus, gi examples, and debug-helper.py python3 readyYifan J2017-12-041-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=791121
* Fix missing commas in list-devices devtypes dict.Adrian Likins2016-03-021-5/+5
|
* device: add new NMDeviceType NM_DEVICE_TYPE_VETHThomas Haller2016-02-231-0/+1
| | | | Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
* examples: add missing device-types to examplesThomas Haller2016-02-231-0/+4
| | | | Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
* examples: update examples for new device typesJiří Klimeš2013-11-291-1/+6
|
* examples: group python examples - dbus vs. giJiří Klimeš2013-09-241-0/+78
Move examples using dbus-python ('dbus' module) and GObject introspection into their own directories.