Skip to content

Commit

Permalink
Add UTF-8 encoding header to Python scripts. (rebase)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtbc committed Mar 26, 2013
1 parent 8a2020a commit 5680a12
Show file tree
Hide file tree
Showing 402 changed files with 563 additions and 62 deletions.
1 change: 1 addition & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# $Id$
#
Expand Down
2 changes: 2 additions & 0 deletions components/blitz/blitz_tools.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# $Id$
# $Id$
Expand Down
1 change: 1 addition & 0 deletions components/server/src/ome/services/sharing/make_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Expand Down
3 changes: 2 additions & 1 deletion components/tools/OmeroFS/ez_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsAbstractPlatformMonitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Abstract Monitor module.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsDirectory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Directory module
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsDropBox.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs DropBox application
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsDropBoxMonitorClient.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs DropBox implementation of a MonitorClient
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsFileServer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs FileServer module.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsLists.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs List classes
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsMac-10-5-Monitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Monitor module for Mac Os.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsMonitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Monitor module .
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsMonitorServer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs MonitorServer module.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsNotificationScheduler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Notification Scheduler.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsPyinotifyMonitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Monitor module for Linux.
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/fsServerFS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs ServerFS module.
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/fsServerMS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs ServerMS module.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsUtil.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Util module.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroFS/fsWin-XP-Monitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
OMERO.fs Monitor module for Window XP.
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2008 Glencoe Software, Inc. All rights reserved.
Use is subject to license terms supplied in LICENSE.txt
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/drivers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Utility classes for generating file-system-like events
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Copyright 2009 Glencoe Software, Inc. All rights reserved.
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/integration/dbclient.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Copyright 2009 Glencoe Software, Inc. All rights reserved.
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/integration/example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Copyright 2009 Glencoe Software, Inc. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Integration test suite. Please add a reference to your subpackage,
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Unit tests for the directory timeout logic.
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/replay.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Replays all the log records under records/ to see if they cause exceptions
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Tests the state which is held by MonitorClients
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/suite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Top-level test suite. Please add a reference to your subpackage,
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroFS/test/testdrivers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Utility classes for generating file-system-like events
Expand Down
3 changes: 2 additions & 1 deletion components/tools/OmeroPy/examples/createSession.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#------------------------------------------------------------------------------
# Copyright (C) 2006-2008 University of Dundee. All rights reserved.
Expand Down
3 changes: 2 additions & 1 deletion components/tools/OmeroPy/examples/projection_1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#------------------------------------------------------------------------------
# Copyright (C) 2006-2008 University of Dundee. All rights reserved.
Expand Down
3 changes: 2 additions & 1 deletion components/tools/OmeroPy/ez_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setuptools entry point
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/flim-omero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
components/tools/OmeroPy/scripts/omero/analysis_scripts/FLIM.py
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/killableprocess.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# http://svn.smedbergs.us/python-processes/trunk/killableprocess.py
#
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Primary OmeroPy types
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2010 Glencoe Software, Inc. All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import omero.clients
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/callbacks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Callbacks to be used with asynchronous services. The
ProcessCallbackI is also included in the omero.scripts
Expand Down
3 changes: 2 additions & 1 deletion components/tools/OmeroPy/src/omero/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Python driver for OMERO
Expand Down Expand Up @@ -1633,4 +1634,4 @@ def getmemberids(self, group):
def getownerids(self, group):
import omero
ids = [x.child.id.val for x in group.copyGroupExperimenterMap() if x.owner.val]
return ids
return ids
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/clients.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2009 Glencoe Software, Inc. All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/columns.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
::
/*
Expand Down
2 changes: 1 addition & 1 deletion components/tools/OmeroPy/src/omero/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# encoding: utf-8
# -*- coding: utf-8 -*-
"""
::
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/fs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import IceImport
IceImport.load("omero_FS_ice")
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# blitz_gateway - python bindings and wrappers to access an OMERO blitz server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.path.append('.')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Library for gateway tests
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/gateway/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# webclient_gateway
#
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/grid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2010 Glencoe Software, Inc. All rights reserved.
Use is subject to license terms supplied in LICENSE.txt
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/grid/monitors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import IceImport
IceImport.load("omero_FS_ice")
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/install/bzip2_tool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/install/change_ports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/install/logs_library.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""

Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/install/perf_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

#
# Add: screen/plate
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/install/versions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# $Id$
#
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/install/win_set_path.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""

Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/java.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# $Id$
#
Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/min.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""

Copyright 2010 Glencoe Software, Inc. All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions components/tools/OmeroPy/src/omero/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from omero import ObjectFactoryRegistrar
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/plugins/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:author: Josh Moore, josh at glencoesoftware.com

Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/plugins/basics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
load, quit, version, help plugins

Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/plugins/cecog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Methods for working with cecog

Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/plugins/db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Plugin for our managing the OMERO database.

Expand Down
1 change: 1 addition & 0 deletions components/tools/OmeroPy/src/omero/plugins/delete.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Startup plugin for command-line deletes

Expand Down
Loading

0 comments on commit 5680a12

Please sign in to comment.