File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22from distutils .core import setup
33
44setup (name = 'zencoder' ,
5- version = '0.5' ,
5+ version = '0.5.2 ' ,
66 description = 'Integration library for Zencoder' ,
77 author = 'Alex Schworer' ,
88 author_email = 'alex.schworer@gmail.com' ,
Original file line number Diff line number Diff line change 22import httplib2
33from urllib import urlencode
44
5+ LIB_VERSION = '0.5.2'
6+
57# Note: I've seen this pattern for dealing with json in different versions of
68# python in a lot of modules -- if there's a better way, I'd love to use it.
79try :
@@ -64,7 +66,7 @@ def headers(self):
6466 'Content-Type' : 'application/{0}' .format (content_type ),
6567 'Accepts' : 'application/{0}' .format (content_type ),
6668 'Zencoder-Api-Key' : self .api_key ,
67- 'User-Agent' : 'zencoder-py'
69+ 'User-Agent' : 'zencoder-py v{0}' . format ( LIB_VERSION )
6870 }
6971
7072 return headers
You can’t perform that action at this time.
0 commit comments