FogBugz » FogBugzPy A Python wrapper for the FogBugz API Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Reindent for clarity.

Changeset 86f541c88c92

Parent 79dd5e1962eb

by Jason R. Coombs

Changes to one file · Browse files at 86f541c88c92 Showing diff from parent 79dd5e1962eb Diff from another changeset...

Change 1 of 1 Show Entire File fogbugz.py Stacked
 
98
99
100
101
 
 
 
 
 
 
 
 
102
103
104
105
106
107
 
 
 
 
 
 
 
 
 
 
 
 
 
108
109
110
 
98
99
100
 
101
102
103
104
105
106
107
108
109
110
111
112
 
 
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@@ -98,13 +98,31 @@
  for k, v in fields.items():   if DEBUG:   print("field: %s: %s"% (repr(k), repr(v))) - buf.write(crlf.join([ '--' + BOUNDARY, 'Content-disposition: form-data; name="%s"' % k, '', v, '' ]).encode('utf-8')) + lines = [ + '--' + BOUNDARY, + 'Content-disposition: form-data; name="%s"' % k, + '', + v, + '', + ] + buf.write(crlf.join(lines).encode('utf-8'))     n = 0   for f, h in files.items():   n += 1 - buf.write(crlf.join([ '--' + BOUNDARY, 'Content-disposition: form-data; name="File%d"; filename="%s"' % ( n, f), '' ]).encode('utf-8')) - buf.write(crlf.join([ 'Content-type: application/octet-stream', '', '' ]).encode('utf-8')) + lines = [ + '--' + BOUNDARY, + 'Content-disposition: form-data; name="File%d"; ' + 'filename="%s"' % (n, f), + '', + ] + buf.write(crlf.join(lines).encode('utf-8')) + lines = [ + 'Content-type: application/octet-stream', + '', + '', + ] + buf.write(crlf.join(lines).encode('utf-8'))   buf.write(h.read().encode('utf-8'))   buf.write(crlf.encode('utf-8'))