Helpviewer/UserAgent/UserAgentReader.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
27 """ 27 """
28 Public method to read a user agent file. 28 Public method to read a user agent file.
29 29
30 @param fileNameOrDevice name of the file to read (string) 30 @param fileNameOrDevice name of the file to read (string)
31 or reference to the device to read (QIODevice) 31 or reference to the device to read (QIODevice)
32 @return dictionary with user agent data (host as key, agent string as value) 32 @return dictionary with user agent data (host as key, agent string as
33 value)
33 """ 34 """
34 self.__agents = {} 35 self.__agents = {}
35 36
36 if isinstance(fileNameOrDevice, QIODevice): 37 if isinstance(fileNameOrDevice, QIODevice):
37 self.setDevice(fileNameOrDevice) 38 self.setDevice(fileNameOrDevice)

eric ide

mercurial