r47200 - some core bits
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Sun, 10 Apr 2016 00:59:34 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Sun Apr 10 00:59:30 2016
New Revision: 47200
Modified:
branches/oldstyle-internet-8281/twisted/python/components.py
branches/oldstyle-internet-8281/twisted/python/log.py
Log:
some core bits
Modified: branches/oldstyle-internet-8281/twisted/python/components.py
==============================================================================
--- branches/oldstyle-internet-8281/twisted/python/components.py (original)
+++ branches/oldstyle-internet-8281/twisted/python/components.py Sun Apr 10 00:59:30 2016
@@ -37,6 +37,7 @@
# twisted imports
from twisted.python.compat import NativeStringIO
from twisted.python import reflect
+from twisted.python._oldstyle import _oldStyle
@@ -146,6 +147,7 @@
# FIXME: deprecate attribute somehow?
CannotAdapt = TypeError
+@_oldStyle
class Adapter:
"""I am the default implementation of an Adapter for some interface.
@@ -189,6 +191,7 @@
return self.original.isuper(iface, adapter)
+@_oldStyle
class Componentized:
"""I am a mixin to allow you to be adapted in various ways persistently.
Modified: branches/oldstyle-internet-8281/twisted/python/log.py
==============================================================================
--- branches/oldstyle-internet-8281/twisted/python/log.py (original)
+++ branches/oldstyle-internet-8281/twisted/python/log.py Sun Apr 10 00:59:30 2016
@@ -21,6 +21,7 @@
from twisted.python import reflect
from twisted.python import util
from twisted.python import failure
+from twisted.python._oldstyle import _oldStyle
from twisted.python.threadable import synchronize
from twisted.logger import (
Logger as NewLogger, LogLevel as NewLogLevel,
@@ -35,6 +36,7 @@
+@_oldStyle
class ILogContext:
"""
Actually, this interface is just a synonym for the dictionary interface,
@@ -138,6 +140,7 @@
deferr = err
+@_oldStyle
class Logger:
"""
This represents a class which may 'own' a log. Used by subclassing.
@@ -152,6 +155,7 @@
+@_oldStyle
class LogPublisher:
"""
Class for singleton log message publishing.
@@ -453,6 +457,7 @@
+@_oldStyle
class _GlobalStartStopMixIn:
"""
Mix-in for global log observers that can start and stop.
@@ -591,6 +596,7 @@
+@_oldStyle
class StdioOnnaStick:
"""
Class that pretends to be stdout/err, and turns writes into log messages.
@@ -679,6 +685,7 @@
+@_oldStyle
class NullFile:
"""
A file-like object that discards everything.