File tree 7 files changed +12
-7
lines changed
win32comext/axscript/test
7 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 26
26
import sys
27
27
28
28
import pythoncom
29
+ import pywintypes
29
30
import win32api
30
31
import win32con
31
32
import win32ui
@@ -61,7 +62,7 @@ def CalculateIsExpandable(self):
61
62
class HLICLSID (HLICOM ):
62
63
def __init__ (self , myobject , name = None ):
63
64
if isinstance (myobject , str ):
64
- myobject = pythoncom . MakeIID (myobject )
65
+ myobject = pywintypes . IID (myobject )
65
66
if name is None :
66
67
try :
67
68
name = pythoncom .ProgIDFromCLSID (myobject )
Original file line number Diff line number Diff line change 6
6
# is cheated on - so this is still working as a fully-fledged server.
7
7
8
8
import pythoncom
9
+ import pywintypes
9
10
import win32com .server .connect
10
11
import win32com .server .util
11
12
12
13
# This is the IID of the Events interface both Client and Server support.
13
- IID_IConnectDemoEvents = pythoncom . MakeIID ("{A4988850-49C3-11d0-AE5D-52342E000000}" )
14
+ IID_IConnectDemoEvents = pywintypes . IID ("{A4988850-49C3-11d0-AE5D-52342E000000}" )
14
15
15
16
# The server which implements
16
17
# Create a connectable class, that has a single public method
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def _wrap_(self, object):
257
257
if i [0 ] != "{" :
258
258
i = pythoncom .InterfaceNames [i ]
259
259
else :
260
- i = pythoncom . MakeIID (i )
260
+ i = pywintypes . IID (i )
261
261
self ._com_interfaces_ .append (i )
262
262
else :
263
263
self ._com_interfaces_ = []
Original file line number Diff line number Diff line change 1
1
# Test dynamic policy, and running object table.
2
2
3
3
import pythoncom
4
+ import pywintypes
4
5
import winerror
5
6
from win32com .server .exception import COMException
6
7
7
- iid = pythoncom . MakeIID ("{b48969a0-784b-11d0-ae71-d23f56000000}" )
8
+ iid = pywintypes . IID ("{b48969a0-784b-11d0-ae71-d23f56000000}" )
8
9
9
10
10
11
class VeryPermissive :
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def testSimpleUnicode(self):
151
151
self ._testSimple (True )
152
152
153
153
def testComplex (self ):
154
- clsid = pythoncom . MakeIID ("{CD637886-DB8B-4b04-98B5-25731E1495BE}" )
154
+ clsid = pywintypes . IID ("{CD637886-DB8B-4b04-98B5-25731E1495BE}" )
155
155
ctime , atime , wtime = self ._getTestTimes ()
156
156
d = {
157
157
"cFileName" : "foo.txt" ,
Original file line number Diff line number Diff line change 1
1
import sys
2
2
3
3
import pythoncom
4
+ import pywintypes
4
5
from win32com .axscript import axscript
5
6
from win32com .axscript .server import axsite
6
7
from win32com .server import connect , util
@@ -53,7 +54,7 @@ def echo(self, *args):
53
54
#### Connections currently won't work, as there is no way for the engine to
54
55
#### know what events we support. We need typeinfo support.
55
56
56
- IID_ITestEvents = pythoncom . MakeIID ("{8EB72F90-0D44-11d1-9C4B-00AA00125A98}" )
57
+ IID_ITestEvents = pywintypes . IID ("{8EB72F90-0D44-11d1-9C4B-00AA00125A98}" )
57
58
58
59
59
60
class TestConnectServer (connect .ConnectableServer ):
Original file line number Diff line number Diff line change 2
2
import unittest
3
3
4
4
import pythoncom
5
+ import pywintypes
5
6
import win32com .server .policy
6
7
import win32com .test .util
7
8
from win32com .axscript import axscript
@@ -72,7 +73,7 @@ def fail(self, *args):
72
73
#### Connections currently won't work, as there is no way for the engine to
73
74
#### know what events we support. We need typeinfo support.
74
75
75
- IID_ITestEvents = pythoncom . MakeIID ("{8EB72F90-0D44-11d1-9C4B-00AA00125A98}" )
76
+ IID_ITestEvents = pywintypes . IID ("{8EB72F90-0D44-11d1-9C4B-00AA00125A98}" )
76
77
77
78
78
79
class TestConnectServer (connect .ConnectableServer ):
You can’t perform that action at this time.
0 commit comments