From: Kevin A. <ka...@us...> - 2004-09-18 16:26:05
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26258 Modified Files: resource.py Log Message: removed unused unit test from main block Index: resource.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/resource.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** resource.py 26 Apr 2004 20:55:56 -0000 1.5 --- resource.py 18 Sep 2004 16:25:45 -0000 1.6 *************** *** 215,244 **** parentAttributes = parent[ 'info' ][ 'attributes' ] childAttributes.update( parentAttributes ) - - - - # Unit Test - - if __name__ == '__main__' : - - #SpecDoc( 'spec.py', 'ComponentSpecTextFormat' ) - SpecDoc( 'spec.py', 'ComponentSpecHtmlFormat' ) - - import sys - sys.exit(1) - - if len( sys.argv ) is 2 : - s = None - d = util.readAndEvalFile(sys.argv[ 1 ] ) - else : - s = util.readAndEvalFile( sys.argv[ 1 ] ) - d = util.readAndEvalFile( sys.argv[ 2 ] ) - - spec = Spec( s ) - - print 'PasswordField spec = ', spec.getEntry( 'PasswordField' )[ 'info' ][ 'attributes' ] - - #print spec - - r = Resource( d ) - --- 215,216 ---- |