No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
5cb75db
... +0 ...
3425fea
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
6 | 6 | ||
7 | 7 | from scrapy.http import Headers |
|
8 | 8 | try: |
|
9 | - | from scrapy.utils.python import to_bytes, to_unicode |
|
9 | + | import scrapy |
|
10 | + | if scrapy.version_info >= (2, ): |
|
11 | + | from scrapy.utils.python import to_unicode |
|
12 | + | else: |
|
13 | + | from scrapy.utils.python import to_native_str as to_unicode |
|
14 | + | from scrapy.utils.python import to_bytes |
|
10 | 15 | except ImportError: |
|
11 | 16 | # scrapy < 1.1 |
|
12 | 17 | from scrapy.utils.python import unicode_to_str as to_bytes |
Files | Coverage |
---|---|
scrapy_splash | -0.29% 91.99% |
Project Totals (9 files) | 91.99% |
3425fea
5cb75db