equal
deleted
inserted
replaced
71 for thing in things: |
71 for thing in things: |
72 if hasattr(thing, "__iter__"): |
72 if hasattr(thing, "__iter__"): |
73 for part in thing: |
73 for part in thing: |
74 write(part) |
74 write(part) |
75 else: |
75 else: |
76 sys.stdout.write(str(thing)) |
76 try: |
|
77 sys.stdout.write(str(thing)) |
|
78 except socket.error, x: |
|
79 if x[0] != errno.ECONNRESET: |
|
80 raise |
77 |
81 |
78 class templater: |
82 class templater: |
79 def __init__(self, mapfile, filters={}, defaults={}): |
83 def __init__(self, mapfile, filters={}, defaults={}): |
80 self.cache = {} |
84 self.cache = {} |
81 self.map = {} |
85 self.map = {} |