diff options
author | Johnathan Corgan | 2012-03-17 11:12:51 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-03-17 11:12:51 -0700 |
commit | ce5eea6eaed7c49ec2f3eb5ed39e7676423879cf (patch) | |
tree | 772f9b636253d7323d43c109e5e88638d342ef9d /gr-digital/swig/digital_constellation.i | |
parent | 7e2d501a7b8cee26412605bc37cb3cc6f771bbc7 (diff) | |
download | gnuradio-ce5eea6eaed7c49ec2f3eb5ed39e7676423879cf.tar.gz gnuradio-ce5eea6eaed7c49ec2f3eb5ed39e7676423879cf.tar.bz2 gnuradio-ce5eea6eaed7c49ec2f3eb5ed39e7676423879cf.zip |
digital: fix constellation __repr__ for Python swig only
Diffstat (limited to 'gr-digital/swig/digital_constellation.i')
-rw-r--r-- | gr-digital/swig/digital_constellation.i | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-digital/swig/digital_constellation.i b/gr-digital/swig/digital_constellation.i index acc7aad1a..248f90014 100644 --- a/gr-digital/swig/digital_constellation.i +++ b/gr-digital/swig/digital_constellation.i @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2010, 2011 Free Software Foundation, Inc. + * Copyright 2010,2011,2012 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -188,6 +188,7 @@ public: digital_constellation_8psk (); }; +#if SWIGPYTHON /* We want print(constellation) in python to produce nice useful output so we include code at the end of the generated python file that overrides @@ -204,3 +205,4 @@ digital_constellation_dqpsk_sptr.__repr__ = lambda self: '<constellation dqpsk>' digital_constellation_8psk_sptr.__repr__ = lambda self: '<constellation 8psk>' %} +#endif |