Author: oracle
Date: Mon Jul  7 14:53:58 2008
New Revision: 27812

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27812&view=rev
Log:
Make this AI require the unrestricted python environment.
It appears wail will likely require an unrestricted environmnet
unless python 2.6 becomes the default. This is because importing
"with_statement" seems to trigger an internal "__import__" which
is specifically verboten by the safe environment. Python 2.6 will
have "with" as a standard language feature which removes the
requirement of the __future__ import.

A hack/kludge may be possible in the future. For now, I'm not
wasting more time on safe.py which has already been a huge
time sink.


Modified:
    trunk/data/ais/bruteforce_wail.py

Modified: trunk/data/ais/bruteforce_wail.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/ais/bruteforce_wail.py?rev=27812&r1=27811&r2=27812&view=diff
==============================================================================
--- trunk/data/ais/bruteforce_wail.py (original)
+++ trunk/data/ais/bruteforce_wail.py Mon Jul  7 14:53:58 2008
@@ -1,4 +1,4 @@
-#!WPY
+#!UNSAFE_WPY
 
 # Sample implementation - converting to the wail library rather than
 # wesnoth directly. This show how easily bot writers can convert old


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to