diff options
author | Tim McNamara <paperless@timmcnamara.co.nz> | 2010-08-14 10:29:56 (GMT) |
---|---|---|
committer | Tim McNamara <paperless@timmcnamara.co.nz> | 2010-08-14 10:29:56 (GMT) |
commit | b60c0db88a7bbb69958715f17f799efbc7ec056a (patch) | |
tree | ca1d9ba1c76f62211e62dcf105acd300b09d237f | |
parent | 8b8feb3a3989476a98679bbfcb1110b0c1e38819 (diff) |
Encoding, shebang & licence fixes
- Corrected encoding declarations
# encoding: utf-8 => # -*- encoding: utf-8 -*-
- Corrected the incorrect shebangs
#!/usr/env/bin python => #! /usr/env/bin python
- removed licence boilerplate from docstrings
-rwxr-xr-x | Experior.Activity/sbgui.py | 32 | ||||
-rwxr-xr-x | Experior.Activity/sblog.py | 32 | ||||
-rwxr-xr-x | Experior.Activity/sbpython.py | 34 | ||||
-rwxr-xr-x | Experior.Activity/sbrpcserver.py | 34 | ||||
-rwxr-xr-x | Experior.Activity/setup.py | 40 | ||||
-rwxr-xr-x | Experior.Activity/sugarbotlauncher.py | 32 |
6 files changed, 102 insertions, 102 deletions
diff --git a/Experior.Activity/sbgui.py b/Experior.Activity/sbgui.py index 3593f38..28541b0 100755 --- a/Experior.Activity/sbgui.py +++ b/Experior.Activity/sbgui.py @@ -1,23 +1,23 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -sbgui.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#sbgui.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 os import pygtk diff --git a/Experior.Activity/sblog.py b/Experior.Activity/sblog.py index 928c96c..8f077d0 100755 --- a/Experior.Activity/sblog.py +++ b/Experior.Activity/sblog.py @@ -1,23 +1,23 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -sblog.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#sblog.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 logging log = logging.getLogger("") diff --git a/Experior.Activity/sbpython.py b/Experior.Activity/sbpython.py index b80554f..75d412b 100755 --- a/Experior.Activity/sbpython.py +++ b/Experior.Activity/sbpython.py @@ -1,23 +1,23 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -sbpython.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#sbpython.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 sys import time @@ -558,4 +558,4 @@ class widgetRegistry(): # Create the 'sbwidgets' instance. if not globals().has_key("sbwidgets"): - sbwidgets = widgetRegistry()
\ No newline at end of file + sbwidgets = widgetRegistry() diff --git a/Experior.Activity/sbrpcserver.py b/Experior.Activity/sbrpcserver.py index e521a18..1b6b997 100755 --- a/Experior.Activity/sbrpcserver.py +++ b/Experior.Activity/sbrpcserver.py @@ -1,23 +1,23 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -sbrpcserver.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#sbrpcserver.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 binascii import logging import optparse @@ -416,4 +416,4 @@ def main(argv=None): print 'Ctrl+C pressed, exiting...' if __name__ == '__main__': - main()
\ No newline at end of file + main() diff --git a/Experior.Activity/setup.py b/Experior.Activity/setup.py index a74cffd..d13b1d5 100755 --- a/Experior.Activity/setup.py +++ b/Experior.Activity/setup.py @@ -1,23 +1,23 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -setup.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 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/>. -""" +#! /usr/bin/env python +# -*- encoding: utf-8 -*- + +#setup.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 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/>. + import sys from sugar.activity import bundlebuilder diff --git a/Experior.Activity/sugarbotlauncher.py b/Experior.Activity/sugarbotlauncher.py index 29d8d7c..1605d0e 100755 --- a/Experior.Activity/sugarbotlauncher.py +++ b/Experior.Activity/sugarbotlauncher.py @@ -1,23 +1,23 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -sugarbot-launcher.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#sugarbot-launcher.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 logging import os import signal |