~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/widgets/externalshell/introspection.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2014-05-29 09:06:26 UTC
  • mfrom: (1.1.21) (18.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140529090626-f58t82g0n5iewaxu
Tags: 2.3.0~rc+dfsg-1~experimental2
* Add spyder-common binary package for all the python2,3 common files
* debian/path
  - 0001-fix-documentation-installation.patch (deleted)
  + 0001-fix-spyderlib-path.patch (new)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
LOG_FILENAME = get_conf_path('introspection.log')
24
24
 
25
 
if DEBUG:
 
25
DEBUG_INTROSPECTION = DEBUG >= 2
 
26
 
 
27
if DEBUG_INTROSPECTION:
26
28
    import logging
27
29
    logging.basicConfig(filename=get_conf_path('introspection_debug.log'),
28
30
                        level=logging.DEBUG)
49
51
        """Send socket to the appropriate object for later communication"""
50
52
        shell = self.shells[shell_id]
51
53
        shell.set_introspection_socket(sock)
52
 
        if DEBUG:
 
54
        if DEBUG_INTROSPECTION:
53
55
            logging.debug('Introspection server: shell [%r] port [%r]'
54
56
                          % (shell, self.port))
55
57
        
93
95
        n_thread = self.notification_threads[shell_id]
94
96
        n_thread.set_notify_socket(sock)
95
97
        n_thread.start()
96
 
        if DEBUG:
 
98
        if DEBUG_INTROSPECTION:
97
99
            logging.debug('Notification server: shell [%r] port [%r]'
98
100
                          % (self.shells[shell_id], self.port))
99
101
 
107
109
    """
108
110
    global INTROSPECTION_SERVER
109
111
    if INTROSPECTION_SERVER is None:
110
 
        if DEBUG:
 
112
        if DEBUG_INTROSPECTION:
111
113
            import time
112
114
            time_str = "Logging time: %s" % time.ctime(time.time())
113
115
            logging.debug("="*len(time_str))
184
186
                    self.emit(SIGNAL('open_file(QString,int)'), fname, lineno)
185
187
                else:
186
188
                    raise RuntimeError('Unsupported command: %r' % command)
187
 
                if DEBUG:
 
189
                if DEBUG_INTROSPECTION:
188
190
                    logging.debug("received command: %r" % command)
189
191
            except:
190
192
                log_last_error(LOG_FILENAME, "notification thread")