File: private_config.py

package info (click to toggle)
python-redbaron 0.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 772 kB
  • sloc: python: 6,650; makefile: 145; sh: 28
file content (17 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from __future__ import absolute_import

import redbaron


def runned_from_ipython():
    # for testing
    if redbaron.force_ipython_behavior:
        return True

    if not redbaron.ipython_behavior:
        return False
    try:
        __IPYTHON__
        return True
    except NameError:
        return False