Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: third_party/boto/boto/roboto/param.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/boto/boto/roboto/awsqueryservice.py ('k') | third_party/boto/boto/route53/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/roboto/param.py
===================================================================
--- third_party/boto/boto/roboto/param.py (revision 33376)
+++ third_party/boto/boto/roboto/param.py (working copy)
@@ -46,7 +46,7 @@
@classmethod
def convert_file(cls, param, value):
- if os.path.isfile(value):
+ if os.path.exists(value) and not os.path.isdir(value):
return value
raise ValueError
@@ -67,7 +67,7 @@
except:
raise ValidationException(param, '')
-class Param(object):
+class Param(Converter):
def __init__(self, name=None, ptype='string', optional=True,
short_name=None, long_name=None, doc='',
@@ -142,6 +142,6 @@
:param value: The value to convert. This should always
be a string.
"""
- return super(Param, self).convert(value)
+ return super(Param, self).convert(self,value)
« no previous file with comments | « third_party/boto/boto/roboto/awsqueryservice.py ('k') | third_party/boto/boto/route53/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698