Bug 202999 - [ews] Use python 3 compatible way to represent octal in buildbot code
Summary: [ews] Use python 3 compatible way to represent octal in buildbot code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-15 12:04 PDT by Aakash Jain
Modified: 2019-10-15 15:27 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.16 KB, patch)
2019-10-15 12:05 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2019-10-15 12:04:43 PDT
Both Python 2 and 3 supports octal numbers in the format 0o022. Although 0o format is mandatory in Python 3, as https://docs.python.org/3.0/whatsnew/3.0.html#integers specifies: "Octal literals are no longer of the form 0720; use 0o720 instead."

We should change the octal numbers to 0o format, as this is supported by both python 2 and 3, and is a small step towards making the code python 3 compatible.
Comment 1 Aakash Jain 2019-10-15 12:05:59 PDT
Created attachment 381009 [details]
Patch
Comment 2 WebKit Commit Bot 2019-10-15 13:29:38 PDT
Comment on attachment 381009 [details]
Patch

Clearing flags on attachment: 381009

Committed r251153: <https://trac.webkit.org/changeset/251153>
Comment 3 WebKit Commit Bot 2019-10-15 13:29:39 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Ling Ho 2019-10-15 15:27:46 PDT
<rdar://problem/56305710>