Commit Graph

4 Commits

Author SHA1 Message Date
Alex Schultz 474068e487 Drop six
python2 is no longer supported so let's drop six as well.

Change-Id: I2fef470423765a9c432d33e56edf93d08254b5c9
2021-09-24 10:15:42 -06:00
gecong1973 a68d6df930 Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining __eq__(),
one should also define __ne__() so that the operators will behave as
expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I3df4396495e3404e2c644c769693f89b7c01537a
2016-10-17 09:18:02 +08:00
Alexis Lee bfef75d33f Set owner+group from control file
Add keys 'uid' and 'gid' to control file. The values may be UID/GIDs or
names. In either case, the value is checked against the passwd/group
database to ensure it exists.

Change-Id: I1730a126cf024755635043b1a0f70006ab22c046
2014-10-21 09:59:19 +00:00
Alexis Lee ce14b9a4c3 Extract OacFile class to separate file
Change-Id: I97448fe2b503314398db5928ec6a3bbfffe6b2be
2014-10-21 09:59:12 +00:00