@@ -19,30 +19,37 @@ def track(*args, **kwargs):
1919 """Send a track call."""
2020 _proxy ('track' , * args , ** kwargs )
2121
22+
2223def identify (* args , ** kwargs ):
2324 """Send a identify call."""
2425 _proxy ('identify' , * args , ** kwargs )
2526
27+
2628def group (* args , ** kwargs ):
2729 """Send a group call."""
2830 _proxy ('group' , * args , ** kwargs )
2931
32+
3033def alias (* args , ** kwargs ):
3134 """Send a alias call."""
3235 _proxy ('alias' , * args , ** kwargs )
3336
37+
3438def page (* args , ** kwargs ):
3539 """Send a page call."""
3640 _proxy ('page' , * args , ** kwargs )
3741
42+
3843def screen (* args , ** kwargs ):
3944 """Send a screen call."""
4045 _proxy ('screen' , * args , ** kwargs )
4146
47+
4248def flush ():
4349 """Tell the client to flush."""
4450 _proxy ('flush' )
4551
52+
4653def join ():
4754 """Block program until the client clears the queue"""
4855 _proxy ('join' )
@@ -58,8 +65,9 @@ def _proxy(method, *args, **kwargs):
5865 """Create an analytics client if one doesn't exist and send to it."""
5966 global default_client
6067 if not default_client :
61- default_client = Client (write_key , host = host , debug = debug , on_error = on_error ,
62- send = send , sync_mode = sync_mode )
68+ default_client = Client (write_key , host = host , debug = debug ,
69+ on_error = on_error , send = send ,
70+ sync_mode = sync_mode )
6371
6472 fn = getattr (default_client , method )
6573 fn (* args , ** kwargs )
0 commit comments