Minor changes to the example programs.
1.1 --- a/examples/rsa.py Sat Mar 05 14:23:15 2011 +0100
1.2 +++ b/examples/rsa.py Sat Mar 05 15:04:05 2011 +0100
1.3 @@ -9,7 +9,7 @@
1.4 from random import choice
1.5
1.6 def main():
1.7 - args = parse_arguments()
1.8 + args = parse_args()
1.9 if args.e:
1.10 m, e, n = args.e
1.11 print encrypt(m, e, n)
1.12 @@ -53,7 +53,7 @@
1.13
1.14 from argparse import ArgumentParser
1.15
1.16 -def parse_arguments():
1.17 +def parse_args():
1.18 parser = ArgumentParser(description='Applies the Dijkstra algorithm for the single source shortest path problem.')
1.19 parser.add_argument('-e', metavar=('M', 'K', 'N'), type=int, nargs=3, help='sequence of (u, v, c(u,v))')
1.20 parser.add_argument('-d', metavar=('M', 'K', 'N'), type=int, nargs=3, help='source vertex')