Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 18, 2018
1 parent cbb417e commit 7aaba17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/http/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import appier_console

BIG_BUCK_URL = "http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov"
BIG_BUCK_NAME = "big_buck_bunny_1080p_h264.mov"

url = sys.argv[1] if len(sys.argv) > 1 else BIG_BUCK_URL
name = os.path.basename(appier.legacy.urlparse(url).path)
Expand All @@ -59,7 +58,7 @@ def copy(input, name, buffer_size = 16384):
finally:
output.close()

with appier_console.ctx_http_callbacks(BIG_BUCK_NAME) as callbacks:
with appier_console.ctx_http_callbacks(name) as callbacks:
contents, _response = appier.get(
url,
handle = True,
Expand Down

0 comments on commit 7aaba17

Please sign in to comment.