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 2
2
from distutils .core import setup
3
3
4
4
setup (name = 'zencoder' ,
5
- version = '0.5' ,
5
+ version = '0.5.2 ' ,
6
6
description = 'Integration library for Zencoder' ,
7
7
author = 'Alex Schworer' ,
8
8
Original file line number Diff line number Diff line change 2
2
import httplib2
3
3
from urllib import urlencode
4
4
5
+ LIB_VERSION = '0.5.2'
6
+
5
7
# Note: I've seen this pattern for dealing with json in different versions of
6
8
# python in a lot of modules -- if there's a better way, I'd love to use it.
7
9
try :
@@ -64,7 +66,7 @@ def headers(self):
64
66
'Content-Type' : 'application/{0}' .format (content_type ),
65
67
'Accepts' : 'application/{0}' .format (content_type ),
66
68
'Zencoder-Api-Key' : self .api_key ,
67
- 'User-Agent' : 'zencoder-py'
69
+ 'User-Agent' : 'zencoder-py v{0}' . format ( LIB_VERSION )
68
70
}
69
71
70
72
return headers
You can’t perform that action at this time.
0 commit comments