File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
from core import ZencoderResponseError
3
3
4
4
from core import Account
5
+
6
+ from core import __version__
7
+
Original file line number Diff line number Diff line change 3
3
from urllib import urlencode
4
4
from datetime import datetime
5
5
6
- LIB_VERSION = '0.5.2'
7
-
8
6
# Note: I've seen this pattern for dealing with json in different versions of
9
7
# python in a lot of modules -- if there's a better way, I'd love to use it.
10
8
try :
21
19
from django .utils import simplejson
22
20
json = simplejson
23
21
22
+ __version__ = '0.5.2'
23
+
24
24
class ZencoderError (Exception ):
25
25
pass
26
26
@@ -67,7 +67,7 @@ def headers(self):
67
67
'Content-Type' : 'application/{0}' .format (content_type ),
68
68
'Accept' : 'application/{0}' .format (content_type ),
69
69
'Zencoder-Api-Key' : self .api_key ,
70
- 'User-Agent' : 'zencoder-py v{0}' .format (LIB_VERSION )
70
+ 'User-Agent' : 'zencoder-py v{0}' .format (__version__ )
71
71
}
72
72
73
73
return headers
You can’t perform that action at this time.
0 commit comments