Commit 99e5e1656be6404c8ffd0defbb589eeb3f935468

Authored by Jürgen Knödlseder
1 parent bd73d6fa

Adapt to Python 3.

examples/make_pull_at_sensitivity_limit.py
... ... @@ -143,7 +143,7 @@ if __name__ == '__main__':
143 143 # Get input arguments
144 144 usage = "make_pull_at_sensitivity_limit filename [max_threads]"
145 145 if len(sys.argv) < 2 or len(sys.argv) > 3:
146   - print usage
  146 + print(usage)
147 147 sys.exit()
148 148  
149 149 # Get sensitivity file
... ... @@ -189,7 +189,7 @@ if __name__ == &#39;__main__&#39;:
189 189 # Generate pull distribution
190 190 p = processing.Process(target=create_pull, args=args, kwargs=kwargs)
191 191 p.start()
192   - print "Process emin=%.4f emax=%.4f started." % (emin, emax)
  192 + print("Process emin=%.4f emax=%.4f started." % (emin, emax))
193 193  
194 194 # Wait some time
195 195 time.sleep(1)
... ...