Commit Graph

10 Commits

Author SHA1 Message Date
Dan Čermák
b015b91679
Stop inheriting from object
This is no longer required in Python3
2019-08-22 15:43:27 +02:00
Alberto Planas
0c095a98b1 Replace @staticmethod with @classmethod when needed
@classmethod are used in Python to represent methods that can
query and update the class (cls parameter). Is expected to be
used for metaprograming, or advanced techniques that require the
access to the class itself, before we have an instance.

@staticmethod are used to associate a function to a class. It will
not be have access to the instance (self) not the class (cls). In
other programming languages are known as class methods.

This patch replace all the @classmethod with @staticmethod when
there is not need to access to the cls parameter, because the
intention is to be used as normal functions.
2019-03-26 16:27:43 +01:00
Thomas Schraitle
3156bd14d8
Use cls in @classmethods instead of self
For consistency reasons.
2018-12-20 08:47:43 +01:00
Marcus Schäfer
7cee86cf18
Cleanup code to make flake8 happy
The new version of flake8 is more strict on code checking and
complained at several places. This commit fixes the code smells
such that flake8 is happy again
2018-10-25 15:52:17 +02:00
David Cassany
294e25f411 system API docs cleanup 2018-04-19 12:02:12 +02:00
Marcus Schäfer
75b1e2d6c7
Fixed docstring :rtype: values
In Python the string type name is str not string
2018-04-18 10:33:15 +02:00
David Cassany
adcdd6b463 Improve locale pattern in schema
Now the locale pattern in the schema also supports POSIX. Note
that POSIX will be only accepted if listed in the first place of the comma
separated list.

This commit fixes #570
2017-12-15 10:44:56 +01:00
Marcus Schäfer
1a5257a0e8 Prevent use of project relative import statements
For details on the motivation of this change please visit:
https://wiki.python.org/moin/FutureProofPython
2017-03-07 11:23:37 +01:00
Marcus Schäfer
ea42d733c6
Complete system inline API documentation
References #49
2016-04-15 11:24:51 +02:00
Marcus Schäfer
612c574148
Continue Refactor into subpackage
system install, update, size, users, result should have their own namespace
2016-03-07 17:33:39 +01:00