[X2Go-Commits] [x2gobroker] 05/17: x2gobroker/config.py: Don't use types.InstanceType anymore. Gone in Python3.

git-admin at x2go.org git-admin at x2go.org
Fri Dec 14 09:56:11 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit 790e3fbe82c5948397cf911b74643ee66913e091
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Sep 14 15:12:13 2018 +0200

    x2gobroker/config.py: Don't use types.InstanceType anymore. Gone in Python3.
---
 x2gobroker/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x2gobroker/config.py b/x2gobroker/config.py
index d20bc83..f518d24 100644
--- a/x2gobroker/config.py
+++ b/x2gobroker/config.py
@@ -100,7 +100,7 @@ class X2GoBrokerConfigFile(object):
     def __repr__(self):
         result = 'X2GoConfigFile('
         for p in dir(self):
-            if '__' in p or not p in self.__dict__ or type(p) is types.InstanceType: continue
+            if '__' in p or not p in self.__dict__: continue
             result += p + '=' + str(self.__dict__[p]) + ','
         result = result.strip(',')
         return result + ')'

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git


More information about the x2go-commits mailing list