testutils.py & rl_accel.py: use reportlab not __main__ to pacify App Engine, bump version to 3.1.10
authorrobin
Wed, 30 Apr 2014 11:26:59 +0100
changeset 4089 ca6c60fd1f62
parent 4088 72477b3cf6ba
child 4090 054784834fed
testutils.py & rl_accel.py: use reportlab not __main__ to pacify App Engine, bump version to 3.1.10
src/reportlab/__init__.py
src/reportlab/lib/rl_accel.py
src/reportlab/lib/testutils.py
--- a/src/reportlab/__init__.py	Wed Apr 30 10:18:24 2014 +0100
+++ b/src/reportlab/__init__.py	Wed Apr 30 11:26:59 2014 +0100
@@ -3,7 +3,7 @@
 #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/__init__.py
 __version__=''' $Id$ '''
 __doc__="""The Reportlab PDF generation library."""
-Version = "3.1.9"
+Version = "3.1.10"
 
 import sys, os, imp
 
--- a/src/reportlab/lib/rl_accel.py	Wed Apr 30 10:18:24 2014 +0100
+++ b/src/reportlab/lib/rl_accel.py	Wed Apr 30 11:26:59 2014 +0100
@@ -16,9 +16,9 @@
         add32
         hex32
         '''.split()))
-import __main__
-testing = getattr(__main__,'_rl_testing',False)
-del __main__
+import reportlab
+testing = getattr(reportlab,'_rl_testing',False)
+del reportlab
 
 for fn in __all__:
     try:
--- a/src/reportlab/lib/testutils.py	Wed Apr 30 10:18:24 2014 +0100
+++ b/src/reportlab/lib/testutils.py	Wed Apr 30 11:26:59 2014 +0100
@@ -1,8 +1,8 @@
 #Copyright ReportLab Europe Ltd. 2000-2013
 #see license.txt for license details
-import __main__
-__main__._rl_testing=True
-del __main__
+import reportlab
+reportlab._rl_testing=True
+del reportlab
 __version__='''$Id$'''
 __doc__="""Provides support for the test suite.