Helpviewer/GreaseMonkey/GreaseMonkeyScript.py

changeset 1989
8409b0d84061
parent 1953
26aa6fd94dc2
child 2302
f29e9405c851
equal deleted inserted replaced
1987:c7b98f0180ab 1989:8409b0d84061
188 Private method to parse the given script and populate the data structure. 188 Private method to parse the given script and populate the data structure.
189 189
190 @param path path of the Javascript file (string) 190 @param path path of the Javascript file (string)
191 """ 191 """
192 try: 192 try:
193 f = open(path) 193 f = open(path, "r", encoding="utf-8")
194 fileData = f.read() 194 fileData = f.read()
195 f.close() 195 f.close()
196 except (IOError, OSError): 196 except (IOError, OSError):
197 # silently ignore because it shouldn't happen 197 # silently ignore because it shouldn't happen
198 return 198 return

eric ide

mercurial