Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-22 13:20:32 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-22 13:20:32 (GMT)
commitd2a5a496a1bfdba36743a1090d51804167c7a83e (patch)
tree0415385614ce578d8126fe7c73629601cd4c1f28
parentbbe297e5a994242e5fe8b4bcf8b08210024bb871 (diff)
More python3 fixes
-rwxr-xr-xcommands/check6
-rwxr-xr-xcommands/send-patches20
2 files changed, 13 insertions, 13 deletions
diff --git a/commands/check b/commands/check
index d5c1348..784a88d 100755
--- a/commands/check
+++ b/commands/check
@@ -74,7 +74,7 @@ def _run_unittests():
def _check_devbot():
- print "* Checking devbot"
+ print("* Checking devbot")
try:
_run_pep8()
@@ -87,7 +87,7 @@ def _check_devbot():
def _check_ui():
- print "* Checking UI"
+ print("* Checking UI")
profile_path = _get_profile()
result = run.run_test("sugar-runner", _get_test_path("shell.py"))
@@ -97,7 +97,7 @@ def _check_ui():
def _run_checks():
- print "\n= Check =\n"
+ print("\n= Check =\n")
return check.check() and _check_ui() and _check_devbot()
diff --git a/commands/send-patches b/commands/send-patches
index d5469f8..1fd3d07 100755
--- a/commands/send-patches
+++ b/commands/send-patches
@@ -44,9 +44,9 @@ def get_from():
email = get_git_config("user.email", is_global=True)
if not name or not email:
- print "Please configure your name and email\n\n" \
+ print("Please configure your name and email\n\n" \
"git config --global user.name Your Name\n" \
- "git config --global user.email youremail@example.com"
+ "git config --global user.email youremail@example.com")
sys.exit(1)
return "%s <%s>" % (name, email)
@@ -60,27 +60,27 @@ def get_module():
def setup():
- print "Choose how to send email \n\n" \
+ print("Choose how to send email \n\n" \
"1 Google account\n" \
"2 Sugar Labs shell account\n" \
- "3 System sendmail"
+ "3 System sendmail")
choice = None
while choice not in ["1", "2", "3"]:
- choice = raw_input("# ")
+ choice = input("# ")
if choice == "1":
- print "\nEnter your user name"
- smtpuser = raw_input("# ")
+ print("\nEnter your user name")
+ smtpuser = input("# ")
set_git_config("sendemail.smtpencryption", "tls")
set_git_config("sendemail.smtpserver", "smtp.gmail.com")
set_git_config("sendemail.smtpserverport", "587")
set_git_config("sendemail.smtpuser", smtpuser)
elif choice == "2":
- print "\nEnter your user name"
- smtpuser = raw_input("# ")
+ print("\nEnter your user name")
+ smtpuser = input("# ")
set_git_config("sendemail.smtpencryption", "tls")
set_git_config("sendemail.smtpserver", "smtp.sugarlabs.org")
@@ -97,7 +97,7 @@ def setup():
common.setup()
if os.path.dirname(os.getcwd()) != config.get_source_dir():
- print "The command must be run inside one of the source modules."
+ print("The command must be run inside one of the source modules.")
sys.exit(1)
parser = argparse.ArgumentParser()