diff --git a/mixpanel/__init__.py b/mixpanel/__init__.py index b04e36d..3ab171c 100644 --- a/mixpanel/__init__.py +++ b/mixpanel/__init__.py @@ -284,6 +284,11 @@ def send(self, endpoint, json_message): else: raise MixpanelException('No such endpoint "{0}". Valid endpoints are one of {1}'.format(self._endpoints.keys())) + @staticmethod + def flush(): + """To have the same interface as the BufferedConsumer.""" + pass + def _write_request(self, request_url, json_message): data = urllib.urlencode({ 'data': base64.b64encode(json_message),