subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r951379 - /subversion/trunk/subversion/tests/cmdline/svntest/__init__.py
Date Fri, 04 Jun 2010 11:35:05 GMT
Author: gstein
Date: Fri Jun  4 11:35:05 2010
New Revision: 951379

URL: http://svn.apache.org/viewvc?rev=951379&view=rev
Log:
Protect against bad python proggies.

* subversion/test/cmdline/svntest/__init__.py:
  (__all__): die, idiots

Modified:
    subversion/trunk/subversion/tests/cmdline/svntest/__init__.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/__init__.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/__init__.py?rev=951379&r1=951378&r2=951379&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/__init__.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/__init__.py Fri Jun  4 11:35:05 2010
@@ -17,8 +17,10 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-#
-__all__ = ["main", "tree", "actions"]
+
+# any bozos that do "from svntest import *" should die. export nothing
+# to the dumbasses.
+__all__ = [ ]
 
 import sys
 if sys.hexversion < 0x2040000:
@@ -29,6 +31,7 @@ if sys.hexversion < 0x2040000:
 
   # we're skipping this test, not failing, so exit with 0
   sys.exit(0)
+
 try:
   import sqlite3
 except ImportError:



Mime
View raw message