Function: org-babel-python-without-earmuffs

org-babel-python-without-earmuffs is a byte-compiled function defined in ob-python.el.gz.

Signature

(org-babel-python-without-earmuffs SESSION)

Documentation

Return SESSION name as string, without *...* around.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-python.el.gz
(defun org-babel-python-without-earmuffs (session)
  "Return SESSION name as string, without *...* around."
  (let ((name (if (stringp session) session (format "%s" session))))
    (if (and (string= "*" (substring name 0 1))
	     (string= "*" (substring name (- (length name) 1))))
	(substring name 1 (- (length name) 1))
      name)))