From b60c0db88a7bbb69958715f17f799efbc7ec056a Mon Sep 17 00:00:00 2001 From: Tim McNamara Date: Sat, 14 Aug 2010 10:29:56 +0000 Subject: 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 --- 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 . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" 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 . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" 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 . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" 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 . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" 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 . -""" +#! /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 . + 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 . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" import logging import os import signal -- cgit v0.9.1