Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
e876ac62
Commit
e876ac62
authored
Dec 14, 2012
by
Stavros Sachtouris
Browse files
Forgotten Typos
parent
010e8c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/pithos_cli.py
View file @
e876ac62
...
...
@@ -529,7 +529,7 @@ class store_append(_store_container_command):
super
(
self
.
__class__
,
self
).
main
(
container___path
,
path_is_optional
=
False
)
try
:
f
=
open
(
local_path
,
'r'
)
f
=
open
(
local_path
,
'r
b
'
)
progress_bar
=
self
.
arguments
[
'progress_bar'
]
try
:
upload_cb
=
progress_bar
.
get_generator
(
'Appending blocks'
)
...
...
@@ -571,7 +571,7 @@ class store_overwrite(_store_container_command):
super
(
self
.
__class__
,
self
).
main
(
container___path
,
path_is_optional
=
False
)
try
:
f
=
open
(
local_path
,
'r'
)
f
=
open
(
local_path
,
'r
b
'
)
progress_bar
=
self
.
arguments
[
'progress_bar'
]
try
:
upload_cb
=
progress_bar
.
get_generator
(
'Overwritting blocks'
)
...
...
@@ -665,7 +665,7 @@ class store_upload(_store_container_command):
try
:
progress_bar
=
self
.
arguments
[
'progress_bar'
]
hash_bar
=
progress_bar
.
clone
()
with
open
(
local_path
)
as
f
:
with
open
(
local_path
,
'rb'
)
as
f
:
if
self
.
get_argument
(
'unchunked'
):
self
.
client
.
upload_object_unchunked
(
remote_path
,
f
,
etag
=
self
.
get_argument
(
'etag'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment