Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/xmpp/debug.py')
-rw-r--r--src/common/xmpp/debug.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/xmpp/debug.py b/src/common/xmpp/debug.py
index 2ff7997e2..a9f61afd5 100644
--- a/src/common/xmpp/debug.py
+++ b/src/common/xmpp/debug.py
@@ -170,7 +170,7 @@ class Debug:
self._remove_dupe_flags()
if log_file:
- if type( log_file ) is type(''):
+ if isinstance(log_file, str):
try:
self._fh = open(log_file,'w')
except Exception:
@@ -291,7 +291,7 @@ class Debug:
if not active_flags:
#no debuging at all
self.active = []
- elif type( active_flags ) in ( types.TupleType, types.ListType ):
+ elif isinstance(active_flags, (tuple, list)):
flags = self._as_one_list( active_flags )
for t in flags:
if t not in self.debug_flags:
@@ -333,7 +333,7 @@ class Debug:
return [ items ]
r = []
for l in items:
- if type( l ) == type([]):
+ if isinstance(l, list):
lst2 = self._as_one_list( l )
for l2 in lst2:
self._append_unique_str(r, l2 )
@@ -401,4 +401,4 @@ DBG_ALWAYS='always'
##Uncomment this to effectively disable all debugging and all debugging overhead.
#Debug=NoDebug
-# vim: se ts=3: \ No newline at end of file
+# vim: se ts=3: