summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Properties.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
committerBernard Normier <bernard@zeroc.com>2007-02-01 17:09:49 +0000
commitabada90e3f84dc703b8ddc9efcbed8a946fadead (patch)
tree2c6f9dccd510ea97cb927a7bd635422efaae547a /py/modules/IcePy/Properties.cpp
parentremoving trace message (diff)
downloadice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz
ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip
Expanded tabs into spaces
Diffstat (limited to 'py/modules/IcePy/Properties.cpp')
-rw-r--r--py/modules/IcePy/Properties.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/py/modules/IcePy/Properties.cpp b/py/modules/IcePy/Properties.cpp
index 040b6e77a43..b6097394264 100644
--- a/py/modules/IcePy/Properties.cpp
+++ b/py/modules/IcePy/Properties.cpp
@@ -61,35 +61,35 @@ propertiesInit(PropertiesObject* self, PyObject* args, PyObject* /*kwds*/)
Ice::StringSeq seq;
if(arglist)
{
- if(PyObject_IsInstance(arglist, (PyObject*)&PyList_Type))
- {
- if(!listToStringSeq(arglist, seq))
- {
- return -1;
- }
- }
- else if(arglist != Py_None)
- {
- PyErr_Format(PyExc_ValueError, STRCAST("args must be None or a list"));
- return -1;
- }
+ if(PyObject_IsInstance(arglist, (PyObject*)&PyList_Type))
+ {
+ if(!listToStringSeq(arglist, seq))
+ {
+ return -1;
+ }
+ }
+ else if(arglist != Py_None)
+ {
+ PyErr_Format(PyExc_ValueError, STRCAST("args must be None or a list"));
+ return -1;
+ }
}
Ice::PropertiesPtr defaults;
if(defaultsObj)
{
- PyObject* propType = lookupType("Ice.PropertiesI");
- assert(propType != NULL);
- if(PyObject_IsInstance(defaultsObj, propType))
- {
- PyObjectHandle impl = PyObject_GetAttrString(defaultsObj, STRCAST("_impl"));
- defaults = getProperties(impl.get());
- }
- else if(defaultsObj != Py_None)
- {
- PyErr_Format(PyExc_ValueError, STRCAST("defaults must be None or a Ice.Properties"));
- return -1;
- }
+ PyObject* propType = lookupType("Ice.PropertiesI");
+ assert(propType != NULL);
+ if(PyObject_IsInstance(defaultsObj, propType))
+ {
+ PyObjectHandle impl = PyObject_GetAttrString(defaultsObj, STRCAST("_impl"));
+ defaults = getProperties(impl.get());
+ }
+ else if(defaultsObj != Py_None)
+ {
+ PyErr_Format(PyExc_ValueError, STRCAST("defaults must be None or a Ice.Properties"));
+ return -1;
+ }
}