diff options
-rw-r--r-- | indra/lib/python/indra/util/fastest_elementtree.py | 4 | ||||
-rw-r--r-- | indra/lib/python/indra/util/named_query.py | 6 | ||||
-rw-r--r-- | indra/llinventory/llparcel.cpp | 12 |
3 files changed, 13 insertions, 9 deletions
diff --git a/indra/lib/python/indra/util/fastest_elementtree.py b/indra/lib/python/indra/util/fastest_elementtree.py index 6661580463..228be49ed3 100644 --- a/indra/lib/python/indra/util/fastest_elementtree.py +++ b/indra/lib/python/indra/util/fastest_elementtree.py @@ -28,9 +28,7 @@ $/LicenseInfo$ # Using celementree might cause some unforeseen problems so here's a # convenient off switch. - -# *NOTE: turned off cause of problems. :-( *TODO: debug -use_celementree = False +use_celementree = True try: if not use_celementree: diff --git a/indra/lib/python/indra/util/named_query.py b/indra/lib/python/indra/util/named_query.py index 483a9606c8..1457ff2a30 100644 --- a/indra/lib/python/indra/util/named_query.py +++ b/indra/lib/python/indra/util/named_query.py @@ -63,7 +63,7 @@ def _init_g_named_manager(sql_dir = None): # extra fallback directory in case config doesn't return what we want if sql_dir is None: - sql_dir = os.path.dirname(__file__) + "../../../../web/dataservice/sql" + sql_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "web", "dataservice", "sql") global _g_named_manager _g_named_manager = NamedQueryManager( @@ -106,8 +106,8 @@ class NamedQuery(object): a path to a file containing an llsd named query document.""" self._stat_interval_seconds = 5 # 5 seconds self._name = name - if (filename is not None) \ - and (NQ_FILE_SUFFIX != filename[-NQ_FILE_SUFFIX_LEN:]): + if (filename is not None + and NQ_FILE_SUFFIX != filename[-NQ_FILE_SUFFIX_LEN:]): filename = filename + NQ_FILE_SUFFIX self._location = filename self._alternative = dict() diff --git a/indra/llinventory/llparcel.cpp b/indra/llinventory/llparcel.cpp index 489798910d..3607318d7f 100644 --- a/indra/llinventory/llparcel.cpp +++ b/indra/llinventory/llparcel.cpp @@ -1761,7 +1761,11 @@ void LLParcel::startSale(const LLUUID& buyer_id, BOOL is_buyer_group) setCleanOtherTime(0); } -void LLParcel::expireSale(U32& type, U8& flags, LLUUID& from_id, LLUUID& to_id) +void LLParcel::expireSale( + U32& type, + U8& flags, + LLUUID& from_id, + LLUUID& to_id) { mSaleTimerExpires.setTimerExpirySec(0.0); mSaleTimerExpires.stop(); @@ -1777,8 +1781,10 @@ void LLParcel::expireSale(U32& type, U8& flags, LLUUID& from_id, LLUUID& to_id) to_id.setNull(); } -void LLParcel::completeSale(U32& type, U8& flags, - LLUUID& to_id) +void LLParcel::completeSale( + U32& type, + U8& flags, + LLUUID& to_id) { mSaleTimerExpires.setTimerExpirySec(0.0); mSaleTimerExpires.stop(); |