File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 11language : python
22python :
33 - " 2.7"
4+ - " 3.3"
5+ - " 3.4"
6+ - " 3.5"
47 - " 3.6"
58install : " pip install -r requirements.txt"
69script : nosetests -v
Original file line number Diff line number Diff line change 66"""
77
88__author__ = 'Instana Inc.'
9- __copyright__ = 'Copyright 2016 Instana Inc.'
10- __credits__ = ['Pavlo Baron' ]
9+ __copyright__ = 'Copyright 2017 Instana Inc.'
10+ __credits__ = ['Pavlo Baron' , 'Peter Giacomo Lombardo' ]
1111__license__ = 'MIT'
12- __version__ = '0.0.1 '
13- __maintainer__ = 'Pavlo Baron '
14- __email__ = 'pavlo.baron @instana.com'
12+ __version__ = '0.6.6 '
13+ __maintainer__ = 'Peter Giacomo Lombardo '
14+ __email__ = 'peter.lombardo @instana.com'
1515
1616__all__ = ['sensor' , 'tracer' ]
Original file line number Diff line number Diff line change @@ -135,5 +135,10 @@ def set_host(self, host):
135135 def set_port (self , port ):
136136 self .port = port
137137
138- def set_from (self , from_ ):
139- self .from_ = From (** json .loads (from_ ))
138+ def set_from (self , json_string ):
139+ if type (json_string ) is bytes :
140+ raw_json = json_string .decode ("UTF-8" )
141+ else :
142+ raw_json = json_string
143+
144+ self .from_ = From (** json .loads (raw_json ))
You can’t perform that action at this time.
0 commit comments