qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject [1/2] qpid-proton git commit: PROTON-1919: [Python] Remove remaining exported mesenger symbols
Date Sun, 26 Aug 2018 04:27:07 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master b17226257 -> 60c976f7d


PROTON-1919: [Python] Remove remaining exported mesenger symbols


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/d1bef193
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/d1bef193
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/d1bef193

Branch: refs/heads/master
Commit: d1bef1934159f04aa3cbd8d7bb562a712de38a0a
Parents: b172262
Author: Andrew Stitcher <astitcher@apache.org>
Authored: Sun Aug 26 00:03:11 2018 -0400
Committer: Andrew Stitcher <astitcher@apache.org>
Committed: Sun Aug 26 00:03:11 2018 -0400

----------------------------------------------------------------------
 python/proton/__init__.py |  9 +--------
 python/proton/_message.py | 23 +----------------------
 2 files changed, 2 insertions(+), 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d1bef193/python/proton/__init__.py
----------------------------------------------------------------------
diff --git a/python/proton/__init__.py b/python/proton/__init__.py
index be8e247..afb084a 100644
--- a/python/proton/__init__.py
+++ b/python/proton/__init__.py
@@ -42,20 +42,13 @@ from ._endpoints import Endpoint, Connection, Session, Link, Receiver,
Sender, T
 from ._events import Collector, Event, EventType, Handler
 from ._exceptions import ProtonException, MessageException, DataException, TransportException,
\
     SSLException, SSLUnavailable, ConnectionException, SessionException, LinkException, Timeout,
Interrupt
-from ._message import Message, ABORTED, ACCEPTED, PENDING, REJECTED, RELEASED, MODIFIED,
SETTLED
+from ._message import Message
 from ._transport import Transport, SASL, SSL, SSLDomain, SSLSessionDetails
 from ._url import Url
 
 __all__ = [
     "API_LANGUAGE",
     "IMPLEMENTATION_LANGUAGE",
-    "ABORTED",
-    "ACCEPTED",
-    "PENDING",
-    "REJECTED",
-    "RELEASED",
-    "MODIFIED",
-    "SETTLED",
     "UNDESCRIBED",
     "Array",
     "Collector",

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d1bef193/python/proton/_message.py
----------------------------------------------------------------------
diff --git a/python/proton/_message.py b/python/proton/_message.py
index 7b61940..cca498f 100644
--- a/python/proton/_message.py
+++ b/python/proton/_message.py
@@ -19,9 +19,7 @@
 
 from __future__ import absolute_import
 
-from cproton import PN_STATUS_SETTLED, PN_DEFAULT_PRIORITY, PN_STATUS_MODIFIED, PN_STATUS_RELEASED,
PN_STATUS_ABORTED, \
-    PN_STATUS_REJECTED, PN_STATUS_PENDING, PN_STATUS_UNKNOWN, PN_STATUS_ACCEPTED, \
-    PN_OVERFLOW, \
+from cproton import PN_DEFAULT_PRIORITY, PN_OVERFLOW, \
     pn_message_set_delivery_count, pn_message_set_address, pn_message_properties, \
     pn_message_get_user_id, pn_message_set_content_encoding, pn_message_get_subject, pn_message_get_priority,
\
     pn_message_get_content_encoding, pn_message_body, \
@@ -54,25 +52,6 @@ except NameError:
     unicode = str
 
 
-PENDING = Constant("PENDING")
-ACCEPTED = Constant("ACCEPTED")
-REJECTED = Constant("REJECTED")
-RELEASED = Constant("RELEASED")
-MODIFIED = Constant("MODIFIED")
-ABORTED = Constant("ABORTED")
-SETTLED = Constant("SETTLED")
-
-STATUSES = {
-    PN_STATUS_ABORTED: ABORTED,
-    PN_STATUS_ACCEPTED: ACCEPTED,
-    PN_STATUS_REJECTED: REJECTED,
-    PN_STATUS_RELEASED: RELEASED,
-    PN_STATUS_MODIFIED: MODIFIED,
-    PN_STATUS_PENDING: PENDING,
-    PN_STATUS_SETTLED: SETTLED,
-    PN_STATUS_UNKNOWN: None
-}
-
 
 class Message(object):
     """The L{Message} class is a mutable holder of message content.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message