Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed a bit of whitespace.
  • Loading branch information
apollo13 committed Jan 21, 2017
1 parent bb7e71e commit 4c55575
Show file tree
Hide file tree
Showing 200 changed files with 0 additions and 310 deletions.
1 change: 0 additions & 1 deletion circuits/__init__.py
Expand Up @@ -9,7 +9,6 @@
.. _Python Programming Language: http://www.python.org/
"""

__author__ = "James Mills"
__date__ = "24th February 2013"

Expand Down
1 change: 0 additions & 1 deletion circuits/app/__init__.py
Expand Up @@ -3,7 +3,6 @@
Contains various components useful for application development and tasks
common to applications.
"""

from .daemon import Daemon
from .dropprivileges import DropPrivileges

Expand Down
2 changes: 0 additions & 2 deletions circuits/app/daemon.py
Expand Up @@ -4,8 +4,6 @@
controlling PTY. Supports PID file writing, logging stdin, stdout and stderr
and changing the current working directory.
"""


from os import (
_exit, chdir, closerange, dup2, fork, getpid, remove, setsid, umask,
)
Expand Down
2 changes: 0 additions & 2 deletions circuits/core/__init__.py
Expand Up @@ -2,8 +2,6 @@
This package contains the essential core parts of the circuits framework.
"""


from .bridge import Bridge, ipc
from .components import BaseComponent, Component
from .debugger import Debugger
Expand Down
2 changes: 0 additions & 2 deletions circuits/core/bridge.py
Expand Up @@ -6,8 +6,6 @@
Pipe is used as the socket transport between two sides of a Bridge
(*there must be a :class:`~Bridge` instnace on both sides*).
"""


import traceback

from ..six import b
Expand Down
1 change: 0 additions & 1 deletion circuits/core/components.py
@@ -1,7 +1,6 @@
"""
This module defines the BaseComponent and its subclass Component.
"""

from collections import Callable
from inspect import getmembers
from itertools import chain
Expand Down
2 changes: 0 additions & 2 deletions circuits/core/debugger.py
Expand Up @@ -2,8 +2,6 @@
Debugger component used to debug each event in a system by printing
each event to sys.stderr or to a Logger Component instance.
"""


import os
import sys
from signal import SIGINT, SIGTERM
Expand Down
1 change: 0 additions & 1 deletion circuits/core/handlers.py
@@ -1,7 +1,6 @@
"""
This module define the @handler decorator/function and the HandlesType type.
"""

from collections import Callable
from inspect import getargspec

Expand Down
1 change: 0 additions & 1 deletion circuits/core/helpers.py
@@ -1,7 +1,6 @@
"""
.. codeauthor: mnl
"""

from signal import SIGINT, SIGTERM
from sys import stderr
from threading import Event
Expand Down
1 change: 0 additions & 1 deletion circuits/core/loader.py
Expand Up @@ -3,7 +3,6 @@
components from other modules. This supports loading from local paths,
eggs and zip archives. Both setuptools and distribute are fully supported.
"""

import sys
from inspect import getmembers, getmodule, isclass

Expand Down
2 changes: 0 additions & 2 deletions circuits/core/manager.py
@@ -1,8 +1,6 @@
"""
This module defines the Manager class.
"""


import atexit
from heapq import heappop, heappush
from inspect import isfunction
Expand Down
1 change: 0 additions & 1 deletion circuits/core/pollers.py
Expand Up @@ -6,7 +6,6 @@
- Poll
- EPoll
"""

import os
import platform
import select
Expand Down
1 change: 0 additions & 1 deletion circuits/core/utils.py
Expand Up @@ -2,7 +2,6 @@
This module defines utilities used by circuits.
"""

import sys
from imp import reload

Expand Down
2 changes: 0 additions & 2 deletions circuits/core/values.py
@@ -1,8 +1,6 @@
"""
This defines the Value object used by components and events.
"""


from ..six import string_types
from .events import Event

Expand Down
1 change: 0 additions & 1 deletion circuits/core/workers.py
Expand Up @@ -7,7 +7,6 @@
is used independently it should not be registered as it causes its
main event handler ``_on_task`` to execute in the other thread blocking it.
"""

from multiprocessing import Pool as ProcessPool, cpu_count
from multiprocessing.pool import ThreadPool
from threading import current_thread
Expand Down
1 change: 0 additions & 1 deletion circuits/io/__init__.py
Expand Up @@ -4,7 +4,6 @@
Component, StdIn, StdOut and StdErr components. Instances of StdIn, StdOut
and StdErr are also created by importing this package.
"""

import sys

from .events import close, open, seek, write
Expand Down
1 change: 0 additions & 1 deletion circuits/io/events.py
Expand Up @@ -2,7 +2,6 @@
This module implements commonly used I/O events used by other I/O modules.
"""

from circuits.core import Event


Expand Down
1 change: 0 additions & 1 deletion circuits/io/file.py
Expand Up @@ -2,7 +2,6 @@
This module implements a wrapper for basic File I/O.
"""

try:
from os import O_NONBLOCK
except ImportError:
Expand Down
1 change: 0 additions & 1 deletion circuits/io/notify.py
Expand Up @@ -2,7 +2,6 @@
A Component wrapping the inotify API using the pyinotify library.
"""

try:
from pyinotify import IN_UNMOUNT
from pyinotify import WatchManager, Notifier, ALL_EVENTS
Expand Down
1 change: 0 additions & 1 deletion circuits/io/process.py
Expand Up @@ -2,7 +2,6 @@
This module implements a wrapper for basic ``subprocess.Popen`` functionality.
"""

from io import BytesIO
from subprocess import PIPE, Popen

Expand Down
1 change: 0 additions & 1 deletion circuits/io/serial.py
Expand Up @@ -2,7 +2,6 @@
This module implements basic Serial (RS232) I/O.
"""

from collections import deque

from circuits.core import Component, Event, handler
Expand Down
1 change: 0 additions & 1 deletion circuits/net/events.py
Expand Up @@ -2,7 +2,6 @@
This module implements commonly used Networking events used by socket components.
"""

from circuits.core import Event


Expand Down
1 change: 0 additions & 1 deletion circuits/net/sockets.py
Expand Up @@ -2,7 +2,6 @@
This module contains various Socket Components for use with Networking.
"""

import os
import select
from collections import defaultdict, deque
Expand Down
1 change: 0 additions & 1 deletion circuits/node/__init__.py
Expand Up @@ -2,7 +2,6 @@
Distributed processing support for circuits.
"""

from .events import remote
from .node import Node

Expand Down
1 change: 0 additions & 1 deletion circuits/node/node.py
Expand Up @@ -3,7 +3,6 @@
this module manage node (start server, add peer, ...)
.. seealso:: Examples in :dir:`examples.node`
"""

from circuits import BaseComponent, Timer, handler
from circuits.net.events import connect

Expand Down
2 changes: 0 additions & 2 deletions circuits/protocols/__init__.py
Expand Up @@ -2,7 +2,5 @@
This package contains components that implement various networking protocols.
"""


from .irc import IRC # noqa
from .line import Line # noqa
1 change: 0 additions & 1 deletion circuits/protocols/line.py
Expand Up @@ -4,7 +4,6 @@
This module can be used in both server and client implementations.
"""

import re

from circuits.core import BaseComponent, Event, handler
Expand Down
1 change: 0 additions & 1 deletion circuits/protocols/websocket.py
Expand Up @@ -2,7 +2,6 @@
.. codeauthor: mnl
"""

import os
import random

Expand Down
3 changes: 0 additions & 3 deletions circuits/six.py
Expand Up @@ -17,7 +17,6 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""Utilities for writing code that runs on Python 2 and 3"""

from __future__ import absolute_import
Expand Down Expand Up @@ -710,8 +709,6 @@ def exec_(_code_, _globs_=None, _locs_=None):
finally:
tb = None
""")


if sys.version_info[:2] == (3, 2):
exec_("""def raise_from(value, from_value):
try:
Expand Down
1 change: 0 additions & 1 deletion circuits/tools/__init__.py
Expand Up @@ -3,7 +3,6 @@
circuits.tools contains a standard set of tools for circuits. These
tools are installed as executables with a prefix of "circuits."
"""

from functools import wraps
from warnings import warn, warn_explicit

Expand Down
1 change: 0 additions & 1 deletion circuits/web/__init__.py
Expand Up @@ -3,7 +3,6 @@
circuits.web contains the circuits full stack web server that is HTTP
and WSGI compliant.
"""

from .controllers import BaseController, Controller, expose
from .dispatchers import XMLRPC, Dispatcher, Static, VirtualHosts
from .errors import forbidden, httperror, notfound, redirect
Expand Down
1 change: 0 additions & 1 deletion circuits/web/constants.py
Expand Up @@ -2,7 +2,6 @@
This module implements required shared global constants.
"""

from circuits import __version__

SERVER_PROTOCOL = (1, 1)
Expand Down
1 change: 0 additions & 1 deletion circuits/web/controllers.py
Expand Up @@ -2,7 +2,6 @@
This module implements ...
"""

import json
from collections import Callable
from functools import update_wrapper
Expand Down
1 change: 0 additions & 1 deletion circuits/web/dispatchers/__init__.py
Expand Up @@ -4,7 +4,6 @@
By default a ``circuits.web.Server`` Component uses the
``dispatcher.Dispatcher``
"""

from ..websockets.dispatcher import WebSocketsDispatcher
from .dispatcher import Dispatcher
from .jsonrpc import JSONRPC
Expand Down
1 change: 0 additions & 1 deletion circuits/web/dispatchers/dispatcher.py
Expand Up @@ -3,7 +3,6 @@
This module implements a basic URL to Channel dispatcher.
This is the default dispatcher used by circuits.web
"""

try:
from urllib import quote, unquote
except ImportError:
Expand Down
1 change: 0 additions & 1 deletion circuits/web/dispatchers/jsonrpc.py
Expand Up @@ -3,7 +3,6 @@
This module implements a JSON RPC dispatcher that translates incoming
RPC calls over JSON into RPC events.
"""

from circuits import BaseComponent, Event, handler
from circuits.six import binary_type
from circuits.tools import tryimport
Expand Down
1 change: 0 additions & 1 deletion circuits/web/dispatchers/static.py
Expand Up @@ -3,7 +3,6 @@
This modStatic implements a Static dispatcher used to serve up static
resources and an optional apache-style directory listing.
"""

import os
from string import Template

Expand Down
1 change: 0 additions & 1 deletion circuits/web/dispatchers/xmlrpc.py
Expand Up @@ -3,7 +3,6 @@
This module implements a XML RPC dispatcher that translates incoming
RPC calls over XML into RPC events.
"""

try:
from xmlrpc.client import dumps, loads, Fault
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions circuits/web/events.py
Expand Up @@ -2,8 +2,6 @@
This module implements the necessary Events needed.
"""


from circuits import Event


Expand Down
1 change: 0 additions & 1 deletion circuits/web/exceptions.py
Expand Up @@ -4,7 +4,6 @@
Note: This code is mostly borrowed from werkzeug and adapted for circuits.web
"""

from inspect import isclass

from .constants import HTTP_STATUS_CODES
Expand Down
1 change: 0 additions & 1 deletion circuits/web/headers.py
Expand Up @@ -2,7 +2,6 @@
This module implements support for parsing and handling headers.
"""

import re

from circuits.six import b, iteritems, u
Expand Down
2 changes: 0 additions & 2 deletions circuits/web/http.py
Expand Up @@ -3,8 +3,6 @@
This module implements the server side Hyper Text Transfer Protocol
or commonly known as HTTP.
"""


from io import BytesIO
from socket import socket

Expand Down
1 change: 0 additions & 1 deletion circuits/web/loggers.py
Expand Up @@ -2,7 +2,6 @@
This module implements Logger Components.
"""

import datetime
import os
import sys
Expand Down
4 changes: 0 additions & 4 deletions circuits/web/main.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


"""Main
circutis.web Web Server and Testing Tool.
"""


import os
from hashlib import md5
from optparse import OptionParser
Expand Down
2 changes: 0 additions & 2 deletions circuits/web/parsers/http.py
Expand Up @@ -5,8 +5,6 @@
#
# This module is liberally borrowed (with modifications) from:
# https://raw.githubusercontent.com/benoitc/http-parser/master/http_parser/pyparser.py


import re
import zlib

Expand Down
2 changes: 0 additions & 2 deletions circuits/web/parsers/querystring.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-


try:
from urlparse import parse_qsl
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions circuits/web/servers.py
Expand Up @@ -2,8 +2,6 @@
This module implements the several Web Server components.
"""


from sys import stderr

from circuits import io
Expand Down

0 comments on commit 4c55575

Please sign in to comment.