Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4186a28

Browse files
author
Alex Schworer
committed
add __version__ to package
1 parentcbc9357 commit4186a28

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎zencoder/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
fromcoreimportZencoderResponseError
33

44
fromcoreimportAccount
5+
6+
fromcoreimport__version__
7+

‎zencoder/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
fromurllibimporturlencode
44
fromdatetimeimportdatetime
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.
108
try:
@@ -21,6 +19,8 @@
2119
fromdjango.utilsimportsimplejson
2220
json=simplejson
2321

22+
__version__='0.5.2'
23+
2424
classZencoderError(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
returnheaders

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp