/[pac]/pac/PACDefault/PACTool.py
ViewVC logotype

Diff of /pac/PACDefault/PACTool.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tvon, Sun Oct 12 02:05:46 2003 UTC revision 1.3 by tvon, Sun Oct 12 02:07:51 2003 UTC
# Line 35  class PACTool (UniqueObject, SimpleItem) Line 35  class PACTool (UniqueObject, SimpleItem)
35          import re          import re
36          try:          try:
37              fullzip = '%s-%s' % (member.getProperty('zipcode'), member.getProperty('zip4'))              fullzip = '%s-%s' % (member.getProperty('zipcode'), member.getProperty('zip4'))
38           except:          except:
39               return None              return None
40          result = urllib.urlopen('http://www.vote-smart.org/search_zipcode.php?type=zip&keyword=%s' % full_zip)          result = urllib.urlopen('http://www.vote-smart.org/search_zipcode.php?type=zip&keyword=%s' % full_zip)
41    
42          lines = result.read().split('\n')          lines = result.read().split('\n')

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26