about summary refs log tree commit diff
path: root/third_party/lieer/discovery_doc.patch
diff options
context:
space:
mode:
authortazjin <mail@tazj.in>2020-07-07T09·31+0000
committertazjin <mail@tazj.in>2020-07-07T21·50+0000
commitc9afd22c442299c34330ed9ccd45c98b7ba3f3f8 (patch)
treed0eefdeba9f5d20c77ed7026943faa7e50eced2e /third_party/lieer/discovery_doc.patch
parentcb52c9e41d87303d36b15efa4819c2fe47ff13b3 (diff)
chore(3p/lieer): Revert "Work around issues in Google Mail API" r/1237
This reverts commit 8b5859319347a0da80e9d7fd4dd1a7b5dec84e52.

Reason for revert: Google has fixed the upstream issue and this is not necessary anymore.

Change-Id: Ib1f7cfbc0e7e0997239514e9be75d2deab8c3c67
Reviewed-on: https://cl.tvl.fyi/c/depot/+/961
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party/lieer/discovery_doc.patch')
-rw-r--r--third_party/lieer/discovery_doc.patch15
1 files changed, 0 insertions, 15 deletions
diff --git a/third_party/lieer/discovery_doc.patch b/third_party/lieer/discovery_doc.patch
deleted file mode 100644
index fd140ac6ef97..000000000000
--- a/third_party/lieer/discovery_doc.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/lieer/remote.py b/lieer/remote.py
-index 6e3973a..2b0b59e 100644
---- a/lieer/remote.py
-+++ b/lieer/remote.py
-@@ -386,7 +386,9 @@ class Remote:
-     if timeout == 0: timeout = None
- 
-     self.http = self.credentials.authorize (httplib2.Http(timeout = timeout))
--    self.service = discovery.build ('gmail', 'v1', http = self.http)
-+    with open('${DISCOVERY_DOC}', 'r') as file:
-+      discovery_doc = file.read()
-+      self.service = discovery.build_from_document(discovery_doc, http = self.http)
-     self.authorized = True
- 
-   def __get_credentials__ (self):