Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim McNamara <paperless@timmcnamara.co.nz>2010-08-14 10:21:48 (GMT)
committer Tim McNamara <paperless@timmcnamara.co.nz>2010-08-14 10:21:48 (GMT)
commit8b8feb3a3989476a98679bbfcb1110b0c1e38819 (patch)
treea8a6a58208eb3170af45b822338b562b47ce7a60
parent83eff5ff0131eab7b3b78ad830e8200c00d0a21f (diff)
Fixed start of files
Corrected the beginning of the files so that they conform to PEP 8.
-rwxr-xr-xExperior.Activity/sbconfig_sample.py6
-rwxr-xr-xExperior.Activity/sbdecorators.py32
-rwxr-xr-xExperior.Activity/sbexecutionengine.py34
3 files changed, 36 insertions, 36 deletions
diff --git a/Experior.Activity/sbconfig_sample.py b/Experior.Activity/sbconfig_sample.py
index dfd84b4..b4d2c26 100755
--- a/Experior.Activity/sbconfig_sample.py
+++ b/Experior.Activity/sbconfig_sample.py
@@ -1,5 +1,5 @@
-#!/usr/bin/env python
-# encoding: utf-8
+#! /usr/bin/env python
+# -*- encoding: utf-8 -*-
# The host that the sugarbot clients should connect to in order to retrieve
# the commands that they need to execute.
@@ -10,4 +10,4 @@ host = "localhost"
port = 54321
# Client name.
-clientName = "testClientName" \ No newline at end of file
+clientName = "testClientName"
diff --git a/Experior.Activity/sbdecorators.py b/Experior.Activity/sbdecorators.py
index fcc85c9..86b6c5e 100755
--- a/Experior.Activity/sbdecorators.py
+++ b/Experior.Activity/sbdecorators.py
@@ -1,23 +1,22 @@
-#!/usr/bin/env python
-# encoding: utf-8
-"""
-sbpython.py
+#! /usr/bin/env python
+# -*- encoding: utf-8 -*-
-This file is part of sugarbot.
+#sbpython.py
+#This file is part of sugarbot.
-sugarbot is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+#sugarbot is free software: you can redistribute it and/or modify
+#it under the terms of the GNU General Public License as published by
+#the Free Software Foundation, either version 3 of the License, or
+#(at your option) any later version.
-sugarbot is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+#sugarbot is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#GNU General Public License for more details.
+
+#You should have received a copy of the GNU General Public License
+#along with sugarbot. If not, see <http://www.gnu.org/licenses/>
-You should have received a copy of the GNU General Public License
-along with sugarbot. If not, see <http://www.gnu.org/licenses/>.
-"""
"""
One of three degrees of enforcement may be specified by passing
@@ -58,6 +57,7 @@ Needed to cast params as floats in function def (or simply divide by 2.0).
TypeError: 'fib' method accepts (int), but was given (float)
"""
+
import sys
def accepts(*types, **kw):
diff --git a/Experior.Activity/sbexecutionengine.py b/Experior.Activity/sbexecutionengine.py
index bb67fe0..228f0e1 100755
--- a/Experior.Activity/sbexecutionengine.py
+++ b/Experior.Activity/sbexecutionengine.py
@@ -1,23 +1,23 @@
-#!/usr/bin/env python
-# encoding: utf-8
-"""
-sbexecutionengine.py
+#! /usr/bin/env python
+# -*- encoding: utf-8 -*-
-This file is part of sugarbot.
+#sbexecutionengine.py
-sugarbot is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+#This file is part of sugarbot.
-sugarbot is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+#sugarbot is free software: you can redistribute it and/or modify
+#it under the terms of the GNU General Public License as published by
+#the Free Software Foundation, either version 3 of the License, or
+#(at your option) any later version.
+
+#sugarbot is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#GNU General Public License for more details.
+
+#You should have received a copy of the GNU General Public License
+#along with sugarbot. If not, see <http://www.gnu.org/licenses/>.
-You should have received a copy of the GNU General Public License
-along with sugarbot. If not, see <http://www.gnu.org/licenses/>.
-"""
import gobject
import logging
import os
@@ -109,4 +109,4 @@ class sbExecutionEngine:
Returns true if execution is complete, i.e. there are no more
commands that can be executed.
"""
- return self.executionComplete \ No newline at end of file
+ return self.executionComplete