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 22from core import ZencoderResponseError
33
44from core import Account
5+
6+ from core import __version__
7+
Original file line number Diff line number Diff line change 33from urllib import urlencode
44from datetime import datetime
55
6- LIB_VERSION = '0.5.2'
7-
86# Note: I've seen this pattern for dealing with json in different versions of
97# python in a lot of modules -- if there's a better way, I'd love to use it.
108try :
2119 from django .utils import simplejson
2220 json = simplejson
2321
22+ __version__ = '0.5.2'
23+
2424class ZencoderError (Exception ):
2525 pass
2626
@@ -67,7 +67,7 @@ def headers(self):
6767 'Content-Type' : 'application/{0}' .format (content_type ),
6868 'Accept' : 'application/{0}' .format (content_type ),
6969 '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__ )
7171 }
7272
7373 return headers
You can’t perform that action at this time.
0 commit comments