Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

[Swift] A bunch of python2/python3 compatibility fixes. #1440

Merged
merged 1 commit into from Apr 3, 2019

Conversation

dcci
Copy link
Member

@dcci dcci commented Apr 3, 2019

Brought to you by yours truly.

rdar://problem/47806994

Brought to you by yours truly.

<rdar://problem/47806994>
@dcci dcci changed the base branch from stable to swift-5.1-branch April 3, 2019 17:45
@dcci
Copy link
Member Author

dcci commented Apr 3, 2019

@swift-ci test and merge

@@ -21,10 +20,15 @@
import os.path
import unittest2

import sys
if sys.version_info.major == 2:
import commands as subprocess
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there a subprocess in 2.7, too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it just doesn't have the right methods.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we introduce an lldbutil wrapper?

@adrian-prantl
Copy link
Member

Okay.

@adrian-prantl
Copy link
Member

@swift-ci test and merge

@dcci
Copy link
Member Author

dcci commented Apr 3, 2019

@swift-ci test linux

@swift-ci swift-ci merged commit ad3b1e4 into apple:swift-5.1-branch Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants