tregenerate paymentrequest_pb2.py with new protoc - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 59681d04386f5f493a097388b78ee27959655889 DIR parent 8e12b43b5d5e7619329b191bf1dd405b6bc3ab01 HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 4 Jun 2020 20:27:26 +0200 regenerate paymentrequest_pb2.py with new protoc Used protoc 3.12.3 (latest). Solves many DeprecationWarnings, e.g.: ...\electrum\paymentrequest_pb2.py:114: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. _descriptor.FieldDescriptor( ...\electrum\paymentrequest_pb2.py:65: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool. Diffstat: M electrum/paymentrequest_pb2.py | 152 +++++++++++++++++-------------- 1 file changed, 82 insertions(+), 70 deletions(-) --- DIR diff --git a/electrum/paymentrequest_pb2.py b/electrum/paymentrequest_pb2.py t@@ -1,13 +1,11 @@ +# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: paymentrequest.proto -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() t@@ -18,9 +16,11 @@ _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='paymentrequest.proto', package='payments', parazyd.org:70 /git/electrum/commit/59681d04386f5f493a097388b78ee27959655889.gph:47: line too long