From 8b8feb3a3989476a98679bbfcb1110b0c1e38819 Mon Sep 17 00:00:00 2001 From: Tim McNamara Date: Sat, 14 Aug 2010 10:21:48 +0000 Subject: Fixed start of files Corrected the beginning of the files so that they conform to PEP 8. --- 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 -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" """ 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 . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" 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 -- cgit v0.9.1