Commit 98aaf124 authored by Evan Simpson's avatar Evan Simpson

Fixed foolish typo in Python version detection

parent 223bf1a7
...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted ...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code. Python code.
""" """
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
import sys, os, traceback, re import sys, os, traceback, re
from Globals import DTMLFile, MessageDialog from Globals import DTMLFile, MessageDialog
...@@ -275,7 +275,7 @@ class PythonScript(Script, Historical, Cacheable): ...@@ -275,7 +275,7 @@ class PythonScript(Script, Historical, Cacheable):
from Guarded import GuardedBlock, theGuard, safebin from Guarded import GuardedBlock, theGuard, safebin
from Guarded import WriteGuard, ReadGuard from Guarded import WriteGuard, ReadGuard
# Was the cached bytecode compiled with a compatible Python? # Was the cached bytecode compiled with a compatible Python?
if getattr(self, Python_magic, None) != Python_magic: if getattr(self, 'Python_magic', None) != Python_magic:
allowSideEffect = 1 allowSideEffect = 1
if allowSideEffect: if allowSideEffect:
self._checkCBlock(GuardedBlock) self._checkCBlock(GuardedBlock)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment