X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Futil%2F__init__.py;fp=src%2Fceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Futil%2F__init__.py;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=3b8c30906129db18092d951dbcdd8f16f92cb0f1;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/ceph-volume/ceph_volume/util/__init__.py b/src/ceph/src/ceph-volume/ceph_volume/util/__init__.py deleted file mode 100644 index 3b8c309..0000000 --- a/src/ceph/src/ceph-volume/ceph_volume/util/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ - -def as_string(string): - """ - Ensure that whatever type of string is incoming, it is returned as an - actual string, versus 'bytes' which Python 3 likes to use. - """ - if isinstance(string, bytes): - # we really ignore here if we can't properly decode with utf-8 - return string.decode('utf-8', 'ignore') - return string