def _validate_path(path):
 if (not path):
  raise ValueError('Path is empty')
 if (not isinstance(path, basestring)):
  raise TypeError(('Path should be a string but is %s (%s).' % (path.__class__, path)))

def _validate_path ( path ) : if ( not path ) : raise ValueError ( 'Path is empty' ) if ( not isinstance ( path , basestring ) ) : raise TypeError ( ( 'Path should be a string but is %s (%s).' % ( path . __class__ , path ) ) )
basic validation of google storage paths .