Skip to content
Permalink
Browse files

Upgade .py files to Python 3

Remove redundant add-mc-keys.py
The changes are based on the suggestion from #5142 (comment)
  • Loading branch information...
anatoly-os committed Aug 2, 2019
1 parent a3dd079 commit 8087b11c772a67aca99961edecd11aca6b67de2e

This file was deleted.

@@ -48,11 +48,6 @@ CD C:\MuseScore
:: is MuseScore stable? Check here, no grep in PATH later on
for /f "delims=" %%i in ('grep "^[[:blank:]]*set( *MSCORE_UNSTABLE \+TRUE *)" C:\MuseScore\CMakeLists.txt') do set NIGHTLY_BUILD=%%i

:: add stable keys for musescore.com
::IF "%NIGHTLY_BUILD%" == "" (
::python build/add-mc-keys.py %MC_CONSUMER_KEY% %MC_CONSUMER_SECRET%
::)

:: get revision number
SET "PATH=%QTDIR%\bin;%PATH%"
qmake --version & :: check qt is in %PATH%
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#!/usr/bin/env python3
#
# Example program using irc.client.
#
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# This Python file uses the following encoding: utf-8
import sys
import os
@@ -102,7 +104,7 @@ def main():
if len(sys.argv) == 2:
sshKey = sys.argv[1].lower()
else:
print "Need SSH key"
print("Need SSH key")
exit(0)

pathname = os.path.abspath(os.path.dirname(sys.argv[0]))
@@ -114,10 +116,10 @@ def main():
generateRSS(pathname, l)

except:
print "Unexpected error:", sys.exc_info()[0], "\n"
print sys.exc_info()[1], "\n"
print("Unexpected error:", sys.exc_info()[0], "\n")
print(sys.exc_info()[1], "\n")
import traceback
print traceback.print_tb(sys.exc_info()[2]), "\n"
print(traceback.print_tb(sys.exc_info()[2]), "\n")

if __name__ == '__main__':
main()
@@ -19,8 +19,6 @@ if [[ "$NIGHTLY_BUILD" = "TRUE" ]]
then
cp -f build/travis/resources/splash-nightly.png mscore/data/splash.png
cp -f build/travis/resources/mscore-nightly.icns mscore/data/mscore.icns
#else
#python build/add-mc-keys.py $MC_CONSUMER_KEY $MC_CONSUMER_SECRET
fi

make -f Makefile.osx ci BUILD_NUMBER=${TRAVIS_BUILD_NUMBER}
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# This Python file uses the following encoding: utf-8
import sys
import os
@@ -102,7 +104,7 @@ def main():
if len(sys.argv) == 2:
sshKey = sys.argv[1].lower()
else:
print "Need SSH key"
print("Need SSH key")
exit(0)

pathname = os.path.abspath(os.path.dirname(sys.argv[0]))
@@ -114,10 +116,10 @@ def main():
generateRSS(pathname, l)

except:
print "Unexpected error:", sys.exc_info()[0], "\n"
print sys.exc_info()[1], "\n"
print("Unexpected error:", sys.exc_info()[0], "\n")
print(sys.exc_info()[1], "\n")
import traceback
print traceback.print_tb(sys.exc_info()[2]), "\n"
print(traceback.print_tb(sys.exc_info()[2]), "\n")

if __name__ == '__main__':
main()

0 comments on commit 8087b11

Please sign in to comment.
You can’t perform that action at this time.