Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
cc70a9cd
Commit
cc70a9cd
authored
3 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Drop the workaround for the problem with older prometheus_client
parent
9936c1fd
No related branches found
No related tags found
1 merge request
!278
Port to Python 3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/_storage_server.py
+0
-14
0 additions, 14 deletions
src/_zkapauthorizer/_storage_server.py
with
0 additions
and
14 deletions
src/_zkapauthorizer/_storage_server.py
+
0
−
14
View file @
cc70a9cd
...
@@ -68,20 +68,6 @@ from .storage_common import (
...
@@ -68,20 +68,6 @@ from .storage_common import (
slot_testv_and_readv_and_writev_message
,
slot_testv_and_readv_and_writev_message
,
)
)
# The last Python 2-supporting prometheus_client nevertheless tries to use
# FileNotFoundError, an exception type from Python 3. Since that release,
# prometheus_client has dropped Python 2 support entirely so there is little
# hope of ever having this fixed upstream. When ZKAPAuthorizer is ported to
# Python 3, this should no longer be necessary.
def
_prometheus_client_fix
():
import
prometheus_client.exposition
prometheus_client
.
exposition
.
FileNotFoundError
=
IOError
_prometheus_client_fix
()
# See allmydata/storage/mutable.py
# See allmydata/storage/mutable.py
SLOT_HEADER_SIZE
=
468
SLOT_HEADER_SIZE
=
468
LEASE_TRAILER_SIZE
=
4
LEASE_TRAILER_SIZE
=
4
...
...
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