spulec/moto — pull request #47 by rpermeh (2013-09-27 17:54:28+00:00)
Title: updated to fix split issue with paths with slashes

the whitespace changes were only my editor being dumb, the specific change is on line 133.

This fixes a bug in a path that uses / to seperate the location:

for instance:

bucketASDF/keypart1/keypart2/keypart3

the unrestricted split would create 4 variables and attempt to assign them to 2 output variables, resulting in a ValueError Exception.

This change simply limits the split to the bucket and the full key name.