Skip to content

Commit

Permalink
Merge pull request #1104 from pavolzetor/master
Browse files Browse the repository at this point in the history
Use find() method on string to run on both Python 2 and 3
  • Loading branch information
dbabokin committed Oct 5, 2015
2 parents 1d08598 + 4119917 commit 88461fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bitcode2cpp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/python

import sys
import string
import re
import subprocess
import platform
Expand All @@ -22,7 +21,7 @@
target = re.sub("-", "_", target)

llvm_as="llvm-as"
if platform.system() == 'Windows' or string.find(platform.system(), "CYGWIN_NT") != -1:
if platform.system() == 'Windows' or platform.system().find("CYGWIN_NT") != -1:
llvm_as = os.getenv("LLVM_INSTALL_DIR").replace("\\", "/") + "/bin/" + llvm_as

try:
Expand Down

0 comments on commit 88461fb

Please sign in to comment.