Permalink
Browse files

examples: python: remove local_settings.py overrides

It's rather strange to override parameters passed to __init__ via custom
settings file.
  • Loading branch information...
1 parent a40eb4a commit ef03f8f054589aab5793d342294e5f61066fba20 @SaveTheRbtz committed Dec 9, 2012
Showing with 0 additions and 11 deletions.
  1. +0 −11 examples/python_example.py
View
11 examples/python_example.py
@@ -3,22 +3,11 @@
# Steve Ivy <steveivy@gmail.com>
# http://monkinetic.com
-# this file expects local_settings.py to be in the same dir, with statsd host and port information:
-#
-# statsd_host = 'localhost'
-# statsd_port = 8125
-
# Sends statistics to the stats daemon over UDP
class StatsdClient(object):
def __init__(self, host='localhost', port=8125):
self.host = host
self.port = port
- try:
- import local_settings as settings
- self.host = settings.statsd_host
- self.port = settings.statsd_port
- except:
- pass
self.addr=(host, port)
def timing(self, stat, time, sample_rate=1):

0 comments on commit ef03f8f

Please sign in to comment.