-
Notifications
You must be signed in to change notification settings - Fork 197
Commit 155c23d
authored
method __str__ from UserAgent now using methods (#94)
Is better to calculate and provide a method to calculate the string values for `device`, `os` and `browser` instead of doing it directly on `__str__` method.
This way the users may use those methods to get each data directly. Instead of having to make a `user_agent.__str__().split('/')` to get each value1 parent 89ce57f commit 155c23d
1 file changed
+15
-4
lines changedLines changed: 15 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 | - | ||
144 | - | ||
145 | - | ||
146 | - | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
147 | 148 |
| |
148 | 149 |
| |
149 | 150 |
| |
| |||
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
170 | 180 |
| |
171 | 181 |
| |
172 | 182 |
| |
| |||
255 | 265 |
| |
256 | 266 |
| |
257 | 267 |
| |
268 | + | ||
258 | 269 |
| |
259 | 270 |
|
0 commit comments