Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
99034ac7
Commit
99034ac7
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
py3
parent
cd64dd93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
coolamqp/clustering/__init__.py
+1
-0
1 addition, 0 deletions
coolamqp/clustering/__init__.py
coolamqp/exceptions.py
+0
-19
0 additions, 19 deletions
coolamqp/exceptions.py
coolamqp/framing/compilation/content_property.py
+3
-3
3 additions, 3 deletions
coolamqp/framing/compilation/content_property.py
with
4 additions
and
22 deletions
coolamqp/clustering/__init__.py
+
1
−
0
View file @
99034ac7
...
...
@@ -9,5 +9,6 @@ import logging
logger
=
logging
.
getLogger
(
__name__
)
__all__
=
(
'
Cluster
'
)
from
coolamqp.clustering.cluster
import
Cluster
This diff is collapsed.
Click to expand it.
coolamqp/exceptions.py
+
0
−
19
View file @
99034ac7
...
...
@@ -6,25 +6,6 @@ class CoolAMQPError(Exception):
"""
Base class for CoolAMQP errors
"""
class
ConsumerError
(
CoolAMQPError
):
"""
Exceptions passed to consumer callables.
"""
class
UplinkLost
(
ConsumerError
):
"""
Uplink to the network has been lost, I am working on regaining connectivity
right now.
"""
class
ConsumerCancelled
(
CoolAMQPError
):
"""
The consumer has been cancelled
"""
class
AMQPError
(
CoolAMQPError
):
"""
Base class for errors received from AMQP server
...
...
This diff is collapsed.
Click to expand it.
coolamqp/framing/compilation/content_property.py
+
3
−
3
View file @
99034ac7
...
...
@@ -89,12 +89,12 @@ def _compile_particular_content_property_list_class(zpf, fields):
mod
.
append
(
u
'
\n
def write_to(self, buf):
\n
'
)
mod
.
append
(
u
'
buf.write(
'
)
repred_zpf
=
repr
(
zpf
)
if
not
zpf
.
startswith
(
u
'
b
'
):
if
not
repred_
zpf
.
startswith
(
u
'
b
'
):
repred_zpf
=
u
'
b
'
+
repred_zpf
mod
.
append
(
repred_zpf
)
mod
.
append
(
u
'
)
\n
'
)
mod
.
append
(
get_serializer
(
present_fields
,
prefix
=
'
self.
'
,
indent_level
=
2
))
mod
.
append
(
get_serializer
(
present_fields
,
prefix
=
u
'
self.
'
,
indent_level
=
2
))
# from_buffer
# note that non-bit values
...
...
@@ -109,7 +109,7 @@ def _compile_particular_content_property_list_class(zpf, fields):
# get_size
mod
.
append
(
u
'
\n
def get_size(self):
\n
'
)
mod
.
append
(
get_counter
(
present_fields
,
prefix
=
'
self.
'
,
indent_level
=
2
)[:
-
1
])
# skip eol
mod
.
append
(
get_counter
(
present_fields
,
prefix
=
u
'
self.
'
,
indent_level
=
2
)[:
-
1
])
# skip eol
mod
.
append
(
u
'
+ %s
\n
'
%
(
zpf_length
,
))
# account for pf length
return
u
''
.
join
(
mod
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment