Skip to content

Instantly share code, notes, and snippets.

@somic
Created October 19, 2016 23:33
Show Gist options
  • Save somic/93f965dbee9dcf48c4525fbd5aae809f to your computer and use it in GitHub Desktop.
Save somic/93f965dbee9dcf48c4525fbd5aae809f to your computer and use it in GitHub Desktop.
$ diff -u f.py f1.py
--- f.py 2016-10-19 18:31:41.000000000 -0500
+++ f1.py 2016-10-19 18:32:25.000000000 -0500
@@ -53,7 +53,7 @@
class DiscoveryServiceCached(DiscoveryService):
def __init__(self, *args, **kwargs):
- super(DiscoveryService.__class__, self).__init__(*args, **kwargs)
+ super(self.__class__, self).__init__(*args, **kwargs)
self.hit_cache = {}
def get_synapse_data(self, target):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment