mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Modernize number literals
Use Python-3 compatible syntax, without breaking compatibility with py 2.7 - Octals literals start with 0o to prevent confusion - The "L" at the end of large int literals is not required as they use long on Python 2 automatically. - Using 'int' instead of 'long' for small numbers is OK in all cases except strict type checking checking, e.g. type(0). https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
a908be2785
commit
b8c46f2a32
@@ -86,7 +86,7 @@ def add_ca_schema():
|
||||
root_logger.warning('Could not install %s: %s', target_fname, e)
|
||||
else:
|
||||
root_logger.info('Installed %s', target_fname)
|
||||
os.chmod(target_fname, 0440) # read access for dirsrv user/group
|
||||
os.chmod(target_fname, 0o440) # read access for dirsrv user/group
|
||||
os.chown(target_fname, pki_pent.pw_uid, ds_pent.pw_gid)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user