Skip to content

Commit

Permalink
Fix rpmlint: non-executable-script
Browse files Browse the repository at this point in the history
"""
This text file contains a shebang or is located in a path dedicated for
executables, but lacks the executable bits and cannot thus be executed.  If
the file is meant to be an executable script, add the executable bits,
otherwise remove the shebang or move the file elsewhere.
"""

Mostly deleting the shebang, but some files contain a __main__ function,
so make them executable.

This is the last commit of this series and:
Closes ipythongh-647.
  • Loading branch information
tomspur committed Aug 16, 2011
1 parent e9b1ebb commit a8c5475
Show file tree
Hide file tree
Showing 45 changed files with 1 addition and 49 deletions.
1 change: 0 additions & 1 deletion IPython/config/configurable.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
A base class for objects that are configurable. A base class for objects that are configurable.
Expand Down
1 change: 0 additions & 1 deletion IPython/config/tests/test_configurable.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Tests for IPython.config.configurable Tests for IPython.config.configurable
Expand Down
1 change: 0 additions & 1 deletion IPython/config/tests/test_loader.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Tests for IPython.config.loader Tests for IPython.config.loader
Expand Down
1 change: 0 additions & 1 deletion IPython/core/alias.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
System command aliases. System command aliases.
Expand Down
1 change: 0 additions & 1 deletion IPython/core/autocall.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Autocall capabilities for IPython.core. Autocall capabilities for IPython.core.
Expand Down
1 change: 0 additions & 1 deletion IPython/core/display_trap.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
A context manager for handling sys.displayhook. A context manager for handling sys.displayhook.
Expand Down
3 changes: 1 addition & 2 deletions IPython/core/error.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Global exception classes for IPython.core. Global exception classes for IPython.core.
Expand Down Expand Up @@ -49,4 +48,4 @@ class UsageError(IPythonCoreError):
Something that probably won't warrant a full traceback, but should Something that probably won't warrant a full traceback, but should
nevertheless interrupt a macro / batch file. nevertheless interrupt a macro / batch file.
""" """
1 change: 0 additions & 1 deletion IPython/core/ipapi.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
This module is *completely* deprecated and should no longer be used for This module is *completely* deprecated and should no longer be used for
Expand Down
1 change: 0 additions & 1 deletion IPython/core/page.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Paging capabilities for IPython.core Paging capabilities for IPython.core
Expand Down
1 change: 0 additions & 1 deletion IPython/core/payloadpage.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
A payload based version of page. A payload based version of page.
Expand Down
1 change: 0 additions & 1 deletion IPython/core/prefilter.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Prefiltering components. Prefiltering components.
Expand Down
1 change: 0 additions & 1 deletion IPython/core/shellapp.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
A mixin for :class:`~IPython.core.application.Application` classes that A mixin for :class:`~IPython.core.application.Application` classes that
Expand Down
1 change: 0 additions & 1 deletion IPython/core/splitinput.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Simple utility for splitting user input. Simple utility for splitting user input.
Expand Down
1 change: 0 additions & 1 deletion IPython/core/tests/test_imports.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8


def test_import_completer(): def test_import_completer():
Expand Down
1 change: 0 additions & 1 deletion IPython/extensions/parallelmagic.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8


"""Magic command interface for interactive parallel work.""" """Magic command interface for interactive parallel work."""
Expand Down
1 change: 0 additions & 1 deletion IPython/external/guid/_guid.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8


# GUID.py # GUID.py
Expand Down
2 changes: 0 additions & 2 deletions IPython/external/ssh/forward.py
@@ -1,5 +1,3 @@
#!/usr/bin/env python

# #
# This file is adapted from a paramiko demo, and thus licensed under LGPL 2.1. # This file is adapted from a paramiko demo, and thus licensed under LGPL 2.1.
# Original Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # Original Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
Expand Down
1 change: 0 additions & 1 deletion IPython/lib/__init__.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Extra capabilities for IPython Extra capabilities for IPython
Expand Down
1 change: 0 additions & 1 deletion IPython/lib/guisupport.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# coding: utf-8 # coding: utf-8
""" """
Support for creating GUI apps and starting event loops. Support for creating GUI apps and starting event loops.
Expand Down
1 change: 0 additions & 1 deletion IPython/lib/inputhook.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# coding: utf-8 # coding: utf-8
""" """
Inputhook management for GUI event loop integration. Inputhook management for GUI event loop integration.
Expand Down
1 change: 0 additions & 1 deletion IPython/lib/inputhookgtk.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Enable pygtk to be used interacive by setting PyOS_InputHook. Enable pygtk to be used interacive by setting PyOS_InputHook.
Expand Down
1 change: 0 additions & 1 deletion IPython/lib/inputhookwx.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8


""" """
Expand Down
1 change: 0 additions & 1 deletion IPython/lib/tests/test_imports.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8


def test_import_backgroundjobs(): def test_import_backgroundjobs():
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/apps/baseapp.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
The Base Application class for IPython.parallel apps The Base Application class for IPython.parallel apps
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/apps/launcher.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Facilities for launching IPython processes asynchronously. Facilities for launching IPython processes asynchronously.
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/apps/logwatcher.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
""" """
A simple logger object that consolidates messages incoming from ipcluster processes. A simple logger object that consolidates messages incoming from ipcluster processes.
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/apps/win32support.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""Utility for forwarding file read events over a zmq socket. """Utility for forwarding file read events over a zmq socket.
This is necessary because select on Windows only supports sockets, not FDs. This is necessary because select on Windows only supports sockets, not FDs.
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/apps/winhpcjob.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Job and task components for writing .xml files that the Windows HPC Server Job and task components for writing .xml files that the Windows HPC Server
Expand Down
Empty file modified IPython/parallel/controller/heartmonitor.py 100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion IPython/parallel/controller/hub.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""The IPython Controller Hub with 0MQ """The IPython Controller Hub with 0MQ
This is the master object that handles connections from engines and clients, This is the master object that handles connections from engines and clients,
and monitors traffic through the various queues. and monitors traffic through the various queues.
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/engine/engine.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""A simple engine that talks to a controller over 0MQ. """A simple engine that talks to a controller over 0MQ.
it handles registration, etc. and launches a kernel it handles registration, etc. and launches a kernel
connected to the Controller's Schedulers. connected to the Controller's Schedulers.
Expand Down
1 change: 0 additions & 1 deletion IPython/parallel/engine/streamkernel.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
""" """
Kernel adapted from kernel.py to use ZMQ Streams Kernel adapted from kernel.py to use ZMQ Streams
Expand Down
3 changes: 0 additions & 3 deletions IPython/quarantine/ipy_gnuglobal.py
@@ -1,6 +1,3 @@
#!/usr/bin/env python


""" """
Add %global magic for GNU Global usage. Add %global magic for GNU Global usage.
Expand Down
3 changes: 0 additions & 3 deletions IPython/quarantine/ipy_render.py
@@ -1,5 +1,3 @@
#!/usr/bin/env python

""" IPython extension: Render templates from variables and paste to clipbard """ """ IPython extension: Render templates from variables and paste to clipbard """


from IPython.core import ipapi from IPython.core import ipapi
Expand Down Expand Up @@ -65,4 +63,3 @@ def render(tmpl):
return res return res


ip.push('render') ip.push('render')

2 changes: 0 additions & 2 deletions IPython/quarantine/ipy_workdir.py
@@ -1,5 +1,3 @@
#!/usr/bin/env python

from IPython.core import ipapi from IPython.core import ipapi
ip = ipapi.get() ip = ipapi.get()


Expand Down
Empty file modified IPython/testing/mkdoctests.py 100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion IPython/testing/tests/test_tools.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Tests for testing.tools Tests for testing.tools
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/ipstruct.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
"""A dict subclass that supports attribute style access. """A dict subclass that supports attribute style access.
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/notification.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
The IPython Core Notification Center. The IPython Core Notification Center.
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/syspathcontext.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Context managers for adding things to sys.path temporarily. Context managers for adding things to sys.path temporarily.
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/tests/test_traitlets.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
Tests for IPython.utils.traitlets. Tests for IPython.utils.traitlets.
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/traitlets.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8 # encoding: utf-8
""" """
A lightweight Traits like module. A lightweight Traits like module.
Expand Down
Empty file modified IPython/utils/upgradedir.py 100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion IPython/zmq/kernelapp.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""An Application for launching a kernel """An Application for launching a kernel
Authors Authors
Expand Down
1 change: 0 additions & 1 deletion IPython/zmq/session.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
"""Session object for building, serializing, sending, and receiving messages in """Session object for building, serializing, sending, and receiving messages in
IPython. The Session object supports serialization, HMAC signatures, and IPython. The Session object supports serialization, HMAC signatures, and
metadata on messages. metadata on messages.
Expand Down

0 comments on commit a8c5475

Please sign in to comment.