summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Pabon <lpabon@redhat.com>2013-05-29 21:35:29 -0400
committerPeter Portante <pportant@redhat.com>2013-05-29 19:48:05 -0700
commit07e4329949318a1eafd9ce3d98c6456d0d0c6361 (patch)
tree30d1f49197dbb21415e9bf84546e6ccc053698c1
parent44182fa87f5f499aa7c2876ee0f0c5a84afd12a9 (diff)
pep8 changes to constraint.py
We need the code to pass pep8 tests so that we can enable pep8 in Jenkins Change-Id: I31e4bd10fad65735fabceaedcb1a3bd10e120153 Signed-off-by: Luis Pabon <lpabon@redhat.com> Reviewed-on: http://review.gluster.org/5114 Reviewed-by: Peter Portante <pportant@redhat.com> Tested-by: Peter Portante <pportant@redhat.com>
-rw-r--r--gluster/swift/common/constraints.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gluster/swift/common/constraints.py b/gluster/swift/common/constraints.py
index 1ae8cbb..acdd3f5 100644
--- a/gluster/swift/common/constraints.py
+++ b/gluster/swift/common/constraints.py
@@ -23,6 +23,7 @@ from gluster.swift.common import Glusterfs, ring
MAX_OBJECT_NAME_COMPONENT_LENGTH = 255
+
def set_object_name_component_length(len=None):
global MAX_OBJECT_NAME_COMPONENT_LENGTH
@@ -31,13 +32,14 @@ def set_object_name_component_length(len=None):
elif hasattr(swift.common.constraints, 'constraints_conf_int'):
MAX_OBJECT_NAME_COMPONENT_LENGTH = \
swift.common.constraints.constraints_conf_int(
- 'max_object_name_component_length', 255)
+ 'max_object_name_component_length', 255)
else:
MAX_OBJECT_NAME_COMPONENT_LENGTH = 255
return
set_object_name_component_length()
+
def get_object_name_component_length():
return MAX_OBJECT_NAME_COMPONENT_LENGTH