Revision f2e366cc grc/base/Platform.py

b/grc/base/Platform.py
1 1
"""
2
Copyright 2008, 2009 Free Software Foundation, Inc.
2
Copyright 2008, 2009, 2011 Free Software Foundation, Inc.
3 3
This file is part of GNU Radio
4 4

5 5
GNU Radio Companion is free software; you can redistribute it and/or
......
17 17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18 18
"""
19 19

20
#Perform python integrity checks:
21
# GRC will not work with interpreters that fail the checks below.
22
# This can fail on interpreters built with special optimizations.
23
try:
24
	assert False
25
	raise Exception, 'Failed python integrity check: assert not supported'
26
except AssertionError: pass
27
if __doc__ is None:
28
	raise Exception, 'Failed python integrity check: __doc__ not supported'
29

20 30
import os
21 31
import sys
22 32
from .. base import ParseXML, odict

Also available in: Unified diff