Bug 100034 - Add text/x-python3 content type
Summary: Add text/x-python3 content type
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-02 12:00 UTC by Philip Withnall
Modified: 2017-03-09 13:15 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Add text/x-python3 content type (4.28 KB, patch)
2017-03-02 12:00 UTC, Philip Withnall
Details | Splinter Review

Description Philip Withnall 2017-03-02 12:00:53 UTC
Patch attached.
Comment 1 Philip Withnall 2017-03-02 12:00:56 UTC
Created attachment 130031 [details] [review]
Add text/x-python3 content type

This derives from the text/x-python content type, and is attached to
files with a .py3 extension, or which have a python3 shebang line.
Otherwise, text/x-python is preferred.

This is necessary because Python 3 is not compatible with Python 2, and
introduces some new keywords (such as ‘nonlocal’) which need to be
syntax highlighted differently (for example).

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 2 Bastien Nocera 2017-03-09 13:15:46 UTC
Attachment 130031 [details] pushed as 0676217 - Add text/x-python3 content type


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.