I accidentally found several tabs in code, so I fixed it, as py3 does
not allow to mix tabs and spaces.
Patch attached.
--
Martin Basti
From 74e0ac4f24e3bc329abb2d08c3729945324d945d Mon Sep 17 00:00:00 2001
From: Martin Basti <[email protected]>
Date: Fri, 17 Jul 2015 13:25:32 +0200
Subject: [PATCH] Py3: replace tab with space
python3 does not allow to mix spaces and tabs
---
ipapython/sysrestore.py | 2 +-
ipaserver/dcerpc.py | 2 +-
ipatests/test_xmlrpc/test_old_permission_plugin.py | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ipapython/sysrestore.py b/ipapython/sysrestore.py
index 99d78b1b40c82a3350a7c5ba5ad9bf1f77ba887b..935e4c6ce2b51f5529e931b81de8347e39f401f3 100644
--- a/ipapython/sysrestore.py
+++ b/ipapython/sysrestore.py
@@ -227,7 +227,7 @@ class FileStore:
tasks.restore_context(path)
- #force file to be deleted
+ # force file to be deleted
self.files = {}
self.save()
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
index 4de5afb540e880e8948749c2cfa9a019eb807c47..87f978cfd398d5b00e057f03ad2dee6d34fd0435 100644
--- a/ipaserver/dcerpc.py
+++ b/ipaserver/dcerpc.py
@@ -1276,7 +1276,7 @@ class TrustDomainJoins(object):
if self.local_domain.read_only:
return
- self.local_domain.ftinfo_records = []
+ self.local_domain.ftinfo_records = []
realm_domains = self.api.Command.realmdomains_show()['result']
# Use realmdomains' modification timestamp to judge records last update time
diff --git a/ipatests/test_xmlrpc/test_old_permission_plugin.py b/ipatests/test_xmlrpc/test_old_permission_plugin.py
index b8f06e28cfadf057150958616518b50c0b782128..c254bf70abee2bb5d1cdf50b479b1bc0fe0eb5a0 100644
--- a/ipatests/test_xmlrpc/test_old_permission_plugin.py
+++ b/ipatests/test_xmlrpc/test_old_permission_plugin.py
@@ -1030,7 +1030,7 @@ class test_old_permission(Declarative):
'permission_add', [permission3], dict(
type=u'user',
permissions=u'write',
- attrs=[u'cn']
+ attrs=[u'cn']
)
),
expected=dict(
@@ -1057,7 +1057,7 @@ class test_old_permission(Declarative):
value=permission3,
summary=None,
result=dict(
- dn=permission3_dn,
+ dn=permission3_dn,
cn=[permission3],
objectclass=objectclasses.permission,
type=u'user',
@@ -1080,7 +1080,7 @@ class test_old_permission(Declarative):
value=permission3,
summary=u'Modified permission "%s"' % permission3,
result=dict(
- dn=permission3_dn,
+ dn=permission3_dn,
cn=[permission3],
objectclass=objectclasses.permission,
type=u'user',
--
2.4.3
--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code