internal client unicode paths

made internal client handle unicode path parts by adding make_path method
fixed pep8 problems in internal client and its test
moved internal client unit test file to correct directory

Change-Id: Id1c81c9cb0db05342e4e8a8393db93552fda4647
Fix two edge cases with Range: header

This fixes swob to handle "Range: bytes=-X" where X > len(content); ex.
"Range: bytes=-17" when the object has 10 bytes. Based on the RFC, the
range is satisfiable and all bytes should be returned.

It also fixes "Range: bytes=-0" to be, correctly, not satisfiable.  In
addition, this case's response has Content-Length: 0 and has a zero-byte
body.

It also fixes an existing regression in swob for the case
"Range: bytes=100-" for a body of length < 100 (Content-Length was
negative and the body was returned).

The relevant RFC is 2616, section 14.35.1.

Change-Id: Ib3dc672e083173eb970c10801283813623f26e0e
remove configobj from deps

Change-Id: Ie566e712ba0d3dca543e99efbdb576b19623e73c
fix typing in swift/common.db, swift/container/server.db

Change-Id: I5efb3712faa7d159be2d86913fa5fbdf09b7f98f
Merge "remove configobj from deps"
Fixing alterations to sys.path

Fixes bug 1064249

sys.path should be extended not appended to

Change-Id: I3404a50b16b843b47f5082676029a4dd3b03f812
Merge "internal client unicode paths"
fix swob for make_pre_authed_request

Change-Id: Ic263f4a77a0aa0eb40078772a567eb41a60e40f7
Merge "Fixing alterations to sys.path"
Merge "fix swob for make_pre_authed_request"
Merge "Fix two edge cases with Range: header"
Allows removal of ACLs

fixes bug 1049017

As per the bug report, the -remove- form of deletion only works with
 meta headers and not with x-container-read and x-container-write.

This patch by Yukihiro KAWADA detects the container acls and sends
them through to the backend empty like the other metadata values.

patch2 extends metadata-helper in ContainerController tests so that
the new functionality can be tested.

patch3 changes the k.lower().startswith() commands for read/write to
a single k.lower - thanks David :)

patch4 fixes PEP8

patch5 fixes more than two hundred pep8 errors. Except one,
 where the pep8 tool complains of overindent, or underindent
depending on the position on the line. No idea how to fix that one.

patch6 fixes the remaining pep8 error - thanks Darrell

Change-Id: I36c2dd72b4636136c5ce7db414bf2b61501090ad
fixed internal client things

_get_metadata() should only look for metadata on 200 family http status codes

in the path_parts() in the internal client test file should return distinct unicode strings
with spaces for account, container, and obj

Change-Id: I74e335d3b73a59092a0eec06539f4931420061dd
Merge "Allows removal of ACLs"
Merge "fixed internal client things"
fix empty body getter bug 1067923

Change-Id: Ifd609f305ee878c39ea4e6840ed8fa9369595cfa
fix bug with swob.Request accept property

Change-Id: I2c1246b9bbd1d3ab22c2a035b735d937dd90da11
Honor sample_rate in StatsD logging.

It's there to let administrators turn down the barrage of stats data
that StatsD must cope with, but it wasn't actually honored. Worse, if
the sample rate was set to e.g. 0.2, the stats would all be multiplied
by its inverse, e.g. 2. This patch actually drops packets when
sample_rate < 1, so you get correct measurements.

Fortunately, the default sample rate is 1 (i.e. drop nothing), and
multiplying by 1/1 doesn't change anything, so stats with the default
sample rate of 1.0 are, and have been, just fine.

Fixes bug 1065643.

Also, make the two touched files compliant with pep8 v1.3.3.

Change-Id: I66663144009ae4c9ee96f6a111745d8f5d2f5ca3
Random pep8 fixes!

This patch merely fixes a selection of files to the point where
pep8 1.3.3 is happy. Most of the errors are indentation related to
continued lines (E126, E127, E128), bracket positions (E124) and the
use of backslash (E502).

Patch 2 fixes David's comments regarding backslash and an odd comment
 - thanks David!

Change-Id: I4fbd77ecf5395743cb96acb95fa946c322c16560
Merge "fix bug with swob.Request accept property"