summaryrefslogtreecommitdiff
path: root/testtools/source
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-11-23 23:22:05 -0800
committerJens Carl <j.carl43@gmx.de>2019-12-10 08:43:13 +0100
commitde077efae8265661905a47abb63dbfd6a69e1563 (patch)
tree648862c2696844f087c2cd6ab7ea6b69f31b176f /testtools/source
parent04cb0674550e63fe2db8f0b0500f9364fb572e12 (diff)
Fix IdentationError and mixture of spaces and tabs
Fix IdentationError and mixture of spaces and tabs found by python -m py_compile <file>. Change-Id: I1dc99196410d736ca33ead5deadfc61bc6584428 Reviewed-on: https://gerrit.libreoffice.org/83594 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'testtools/source')
-rw-r--r--testtools/source/bridgetest/pyuno/samplecomponent.py122
1 files changed, 61 insertions, 61 deletions
diff --git a/testtools/source/bridgetest/pyuno/samplecomponent.py b/testtools/source/bridgetest/pyuno/samplecomponent.py
index 736af9bee858..a434cd0b479c 100644
--- a/testtools/source/bridgetest/pyuno/samplecomponent.py
+++ b/testtools/source/bridgetest/pyuno/samplecomponent.py
@@ -28,10 +28,10 @@ g_implName = "org.openoffice.comp.pyuno.PythonTestObject"
g_attribs = "RuntimeException", "Bool", "Char", "Byte", "Short", "UShort", \
"Long", "ULong", "Hyper", "UHyper", "Float", "Double", "Enum", \
- "String", "Interface", "Any" , "Sequence" , "Struct"
+ "String", "Interface", "Any" , "Sequence" , "Struct"
def assign( rData, bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper,\
- nUHyper, fFloat, fDouble, eEnum, rStr, xTest, rAny ):
+ nUHyper, fFloat, fDouble, eEnum, rStr, xTest, rAny ):
rData.Bool = bBool;
rData.Char = cChar;
rData.Byte = nByte;
@@ -50,96 +50,96 @@ def assign( rData, bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper,\
class MyRecursiveCall( XRecursiveCall, unohelper.Base ):
def callRecursivly( xCall, nToCall ):
- if nToCall:
- xCall.callRecursivly( self, nToCall -1 )
-
+ if nToCall:
+ xCall.callRecursivly( self, nToCall -1 )
+
class SampleUnoComponent( XBridgeTestBase,XServiceInfo ):
def __init__(self,ctx):
- self.__dict__["callid"] = 0
- self.__dict__["sequenceBroken"] = 0
+ self.__dict__["callid"] = 0
+ self.__dict__["sequenceBroken"] = 0
def transportAny( self, value ):
- return value
+ return value
def raiseException( self, ArgumentPosition, Message, Context ):
- raise IllegalArgumentException( Message, Context, ArgumentPosition )
-
+ raise IllegalArgumentException( Message, Context, ArgumentPosition )
+
def raiseRuntimeExceptionOneway(self, Message, Context ):
- raise RuntimeException( Message, Context )
+ raise RuntimeException( Message, Context )
def setValues( self, bBool, cChar, nByte, nShort, nUShort, nLong,\
- nULong, nHyper, nUHyper, fFloat, fDouble, eEnum, \
- aString, xInterface, aAny, aSequence, aStruct ):
+ nULong, nHyper, nUHyper, fFloat, fDouble, eEnum, \
+ aString, xInterface, aAny, aSequence, aStruct ):
self.__dict__["data"] = TestDataElements( bBool, cChar, nByte, nShort, nUShort, nLong,
- nULong, nHyper, nUHyper, fFloat, fDouble, eEnum, aStruct, xInterface,
- aAny, aSequence )
- self.__dict__["Struct"] = aStruct
+ nULong, nHyper, nUHyper, fFloat, fDouble, eEnum, aStruct, xInterface,
+ aAny, aSequence )
+ self.__dict__["Struct"] = aStruct
def setValues2( self, bBool, cChar, nByte, nShort, nUShort, nLong, nULong,\
- nHyper, nUHyper, fFloat, fDouble, eEnum, \
- aString, xInterface, aAny, aSequence, aStruct ):
+ nHyper, nUHyper, fFloat, fDouble, eEnum, \
+ aString, xInterface, aAny, aSequence, aStruct ):
self.__dict__["Struct"] = TestData( cChar, nByte, nShort, nUShort, nLong, nULong, nHyper,\
- nUHyper, fFloat, fDouble, eEnum, aStruct, xInterface,\
- aAny, aSequence )
+ nUHyper, fFloat, fDouble, eEnum, aStruct, xInterface,\
+ aAny, aSequence )
self.__dict__["Struct"] = aStruct
- return bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper, nUHyper, nULong, \
- nHyper, nUHyper, fFloat, fDouble, eEnum, aStruct, xInterface, aAny, \
- (aSequence[1],aSequence[0]), aStruct
-
+ return bBool, cChar, nByte, nShort, nUShort, nLong, nULong, nHyper, nUHyper, nULong, \
+ nHyper, nUHyper, fFloat, fDouble, eEnum, aStruct, xInterface, aAny, \
+ (aSequence[1],aSequence[0]), aStruct
+
def getValues(self, a,b,c,d,e,f,g,h, i,j,k,l,m,n):
- v = self.__dict__["data"]
- return self.__dict__["Struct"],v.Bool, v.Char, v.Byte, v.Short, v.UShort, v.Long, \
- v.ULong, v.Hyper, v.UHyper, v.Float, v.Double, v.Enum, v.String, v.Interface, \
- v.Any, v.Sequence, self.__dict__["Struct"]
-
+ v = self.__dict__["data"]
+ return self.__dict__["Struct"],v.Bool, v.Char, v.Byte, v.Short, v.UShort, v.Long, \
+ v.ULong, v.Hyper, v.UHyper, v.Float, v.Double, v.Enum, v.String, v.Interface, \
+ v.Any, v.Sequence, self.__dict__["Struct"]
+
def call( self, callid, nWaitMUSEC ):
- if self.__dict__["callid"] >= callid:
- self.__dict__["sequenceBroken"] = 1
- else:
- self.__dict__["callid"] = callid
+ if self.__dict__["callid"] >= callid:
+ self.__dict__["sequenceBroken"] = 1
+ else:
+ self.__dict__["callid"] = callid
def callOneway( self, nCallId, nWaitMUSEC ):
- call( nCallId, nWaitMUSEC )
-
+ call( nCallId, nWaitMUSEC )
+
def sequenceOfCallTestPassed():
- return self.__dict__["sequenceBroken"]
+ return self.__dict__["sequenceBroken"]
def startRecursiveCall( xCall , nToCall ):
- if nToCall:
- xCall.callRecursivly( MyRecursiveCall(), nToCall -1 )
+ if nToCall:
+ xCall.callRecursivly( MyRecursiveCall(), nToCall -1 )
def checkExistence( self, name ):
- found = 0
- for x in g_attribs:
- if x == name:
- found = 1
- break
- if not found:
- raise UnknownPropertyException( "Property "+name+" is unknown", self )
-
+ found = 0
+ for x in g_attribs:
+ if x == name:
+ found = 1
+ break
+ if not found:
+ raise UnknownPropertyException( "Property "+name+" is unknown", self )
+
def __setattr__( self, name, value ):
- checkExistence( name )
- self.__dict__[name] = value
-
+ checkExistence( name )
+ self.__dict__[name] = value
+
def __getattr__( self, name ):
- checkExistence( name )
- return self.__dict__[name]
+ checkExistence( name )
+ return self.__dict__[name]
def getSupportedServices( self ):
- return g_ImplementationHelper.getSupportedServices(g_implName)
+ return g_ImplementationHelper.getSupportedServices(g_implName)
def supportsService( self, ServiceName ):
- return g_ImplementationHelper.supportsService( g_implName, ServiceName )
+ return g_ImplementationHelper.supportsService( g_implName, ServiceName )
def getImplementationName(self):
- return g_implName
+ return g_implName
g_ImplementationHelper.addImplementation( \
- SampleUnoComponent,g_implName,("com.sun.star.test.bridge.PythonTestObject",),)
-
+ SampleUnoComponent,g_implName,("com.sun.star.test.bridge.PythonTestObject",),)
+
#g_ImplementationEntries = \
-# unohelper.ImplementationEntry( \
-# "org.openoffice.comp.SamplePythonComponent", \
-# ("com.sun.star.test.bridge.PythonTestObject",), \
-# SampleUnoComponent) \
-# ,
+# unohelper.ImplementationEntry( \
+# "org.openoffice.comp.SamplePythonComponent", \
+# ("com.sun.star.test.bridge.PythonTestObject",), \
+# SampleUnoComponent) \
+# ,