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
0b97ff97
Commit
0b97ff97
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
tnt
parent
c4439532
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coolamqp/framing/compilation/utilities.py
+3
-18
3 additions, 18 deletions
coolamqp/framing/compilation/utilities.py
requirements.txt
+0
-1
0 additions, 1 deletion
requirements.txt
with
3 additions
and
19 deletions
coolamqp/framing/compilation/utilities.py
+
3
−
18
View file @
0b97ff97
...
...
@@ -2,7 +2,6 @@
from
__future__
import
absolute_import
,
division
,
print_function
import
math
from
satella.coding
import
typednamedtuple
import
six
...
...
@@ -10,21 +9,8 @@ from coolamqp.framing.base import BASIC_TYPES, DYNAMIC_BASIC_TYPES
# docs may be None
__name
=
(
'
name
'
,
'
name
'
,
str
)
class
optgetter
(
object
):
def
__init__
(
self
,
callable
):
self
.
callable
=
callable
def
__call__
(
self
,
elem
):
return
self
.
callable
(
elem
)
_Required
=
type
(
'
_Required
'
)
class
_Required
(
object
):
pass
class
_Field
(
object
):
...
...
@@ -87,7 +73,6 @@ def get_docs(elem, label=False):
_name
=
_SimpleField
(
'
name
'
,
unicode
)
_docs
=
_ComputedField
(
'
docs
'
,
lambda
elem
:
get_docs
(
elem
))
_docsl
=
_ComputedField
(
'
docs
'
,
lambda
elem
:
get_docs
(
elem
,
label
=
True
))
class
BaseObject
(
object
):
...
...
@@ -137,7 +122,7 @@ class Class(BaseObject):
FIELDS
=
[
_name
,
_ValueField
(
'
index
'
,
int
),
_
docsl
,
_
ComputedField
(
'
docs
'
,
lambda
elem
:
get_docs
(
elem
,
label
=
True
))
,
_ComputedField
(
'
methods
'
,
lambda
elem
:
sorted
(
[
Method
(
me
)
for
me
in
elem
.
getchildren
()
if
me
.
tag
==
'
method
'
],
key
=
lambda
m
:
(
m
.
name
.
strip
(
'
-
'
)[
0
],
-
len
(
m
.
response
)))),
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
+
0
−
1
View file @
0b97ff97
six
monotonic
futures
satella
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