Mercurial > p > roundup > code
annotate demo.py @ 8548:98011edc6c60
refactor: remove duplicate code block
Had the same code inside two different if statements. Replaced
with 'if X in [ a, b ] ' and only one copy of the code.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 26 Mar 2026 21:46:19 -0400 |
| parents | 7f0bc46aee67 |
| children |
| rev | line source |
|---|---|
|
6737
7f0bc46aee67
Force demo.py to use python3.
John Rouillard <rouilj@ieee.org>
parents:
4845
diff
changeset
|
1 #!/usr/bin/env python3 |
|
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()) |
