web2py / web2py
Showing 1 of 1 files from the diff.

@@ -246,15 +246,13 @@
Loading
246 246
                if filename is None:
247 247
                    raise Exception('Missing attachment name')
248 248
                payload = payload.read()
249 -
            # FIXME PY3 can be used to_native?
250 -
            filename = filename.encode(encoding)
251 249
            if content_type is None:
252 250
                content_type = contenttype(filename)
253 251
            self.my_filename = filename
254 252
            self.my_payload = payload
255 253
            MIMEBase.__init__(self, *content_type.split('/', 1))
256 254
            self.set_payload(payload)
257 -
            self['Content-Disposition'] = Header('attachment; filename="%s"' % to_native(filename, encoding), 'utf-8')
255 +
            self.add_header('Content-Disposition', 'attachment', filename=filename)
258 256
            if content_id is not None:
259 257
                self['Content-Id'] = '<%s>' % to_native(content_id, encoding)
260 258
            Encoders.encode_base64(self)
Files Coverage
gluon 42.12%
Project Totals (43 files) 42.12%
mxkcoilrgcmacom6
js949alorqtwxbnf
wuljia5a9jl6arpv
1
codecov:
2
  branch: master
3

4
coverage:
5
  precision: 2
6
  round: down
7
  range: "70...100"
8

9
  status:
10
    changes: false
11

12
comment:
13
  layout: "header, diff, changes"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading