Mercurial > p > roundup > code
annotate demo.py @ 5399:dccae35caa59
Python 3 preparation: update map() calls as needed.
Tool-assisted patch. Note one place using map with first argument
None (not supported in Python 3) which needed to change to using
itertools.zip_longest (respectively itertools.izip_longest in Python
2).
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 23:14:56 +0000 |
| parents | 110ac45875ab |
| children | 7f0bc46aee67 |
| rev | line source |
|---|---|
|
4845
110ac45875ab
executable .py scripts need "#!/usr/bin/env python"
Thomas Arendsen Hein <thomas@intevation.de>
parents:
4765
diff
changeset
|
1 #!/usr/bin/env python |
|
4765
c6694cff29bc
demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents:
4763
diff
changeset
|
2 import sys |
|
c6694cff29bc
demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents:
4763
diff
changeset
|
3 import roundup |
|
c6694cff29bc
demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents:
4763
diff
changeset
|
4 |
|
c6694cff29bc
demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents:
4763
diff
changeset
|
5 from roundup.demo import main |
|
c6694cff29bc
demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents:
4763
diff
changeset
|
6 |
|
c6694cff29bc
demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents:
4763
diff
changeset
|
7 sys.exit(main()) |
