Skip to content

Commit

Permalink
Change argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Jan 9, 2001
1 parent cc6bc1c commit c2425aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
Python code.
"""

__version__='$Revision: 1.11 $'[11:-2]
__version__='$Revision: 1.12 $'[11:-2]

import sys, os, traceback, re
from Globals import DTMLFile, package_home
Expand Down Expand Up @@ -280,7 +280,7 @@ def _editedBindings(self):
return
self._makeFunction(1)

def _exec(self, globals, args, kw):
def _exec(self, bound_names, args, kw):
"""Call a Python Script
Calling a Python Script is an actual function invocation.
Expand Down Expand Up @@ -309,11 +309,11 @@ def _exec(self, globals, args, kw):
if f is None:
f = self._makeFunction()

__traceback_info__ = globals, args, kw, self.func_defaults
__traceback_info__ = bound_names, args, kw, self.func_defaults

if globals is not None:
if bound_names is not None:
# Updating func_globals directly *should* be thread-safe.
f.func_globals.update(globals)
f.func_globals.update(bound_names)

# Execute the function in a new security context.
security=getSecurityManager()
Expand Down

0 comments on commit c2425aa

Please sign in to comment.