From 3bbbe632b9d8fd5705d56eb8f2aa067041ef97ce Mon Sep 17 00:00:00 2001 From: gfawcett Date: Fri, 17 Dec 2010 04:05:43 +0000 Subject: [PATCH] move debugging code to __main__. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1110 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/libsystems/ezproxy.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conifer/libsystems/ezproxy.py b/conifer/libsystems/ezproxy.py index 9729b55..833f07a 100644 --- a/conifer/libsystems/ezproxy.py +++ b/conifer/libsystems/ezproxy.py @@ -39,10 +39,10 @@ class EZProxyService(object): return ''.join((prefix, '.', self.host, suffix)) +if __name__ == '__main__': + host = 'ezproxy.uwindsor.ca' + pwd = 'leddy' + s = EZProxyService(host, pwd) -host = 'ezproxy.uwindsor.ca' -pwd = 'leddy' -s = EZProxyService(host, pwd) - -print s.proxify('http://jstor.org/') -print s.proxify('http://jstor.org.ezproxy.uwindsor.ca/') + print s.proxify('http://jstor.org/') + print s.proxify('http://jstor.org.ezproxy.uwindsor.ca/') -- 2.11.0