From 3267f32b9f2cb820b2380c56f48c9908af372b67 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Wed, 28 Sep 2011 19:44:43 +0200 Subject: [PATCH] Fix bugs in scotty.py introduced by last commit --- scotty.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scotty.py b/scotty.py index ab2d47d..7b15f27 100644 --- a/scotty.py +++ b/scotty.py @@ -255,7 +255,7 @@ if __name__ == '__main__': i += 1 lo = sys.stdin.readline().strip() - args.o = cor[0][int(lo) - 1] + args.origin = cor[0][int(lo) - 1] if cor[1]: print @@ -268,9 +268,9 @@ if __name__ == '__main__': j += 1 ld = sys.stdin.readline().strip() - args.d = cor[1][int(ld) - 1] + args.destination = cor[1][int(ld) - 1] - html = search((args.o.encode('UTF-8'), args.ot), (args.d.encode('UTF-8'), args.dt)).read() + html = search((args.origin.encode('UTF-8'), args.ot), (args.destination.encode('UTF-8'), args.dt)).read() parser = sParser(html) state = parser.check_page() -- 1.7.9.5