Fix "Symbol's value as variable is void: py-version".
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 04 Jan 2012 00:33:56 +0200
changeset 857 05db92f1e97d
parent 856 7757d0840a78
child 858 81c925713d9c
Fix "Symbol's value as variable is void: py-version".
.emacs-my
--- a/.emacs-my	Tue Jan 03 18:46:17 2012 +0200
+++ b/.emacs-my	Wed Jan 04 00:33:56 2012 +0200
@@ -1948,7 +1948,7 @@
 (setq python-indent 4)
 
 (eval-after-load 'python-mode
-  (when (equal py-version "5.1.0")
+  (when (and (boundp 'py-version) (equal py-version "5.1.0"))
     (setq-default py-which-shell py-python-command)
     ;; (py-toggle-shells 'cpython)
     ))