selwin / python-user-agents

A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
MIT License
1.43k stars 196 forks source link

Small refactor to improve code style and reduce branching #112

Closed stephan-nordnes-eriksen closed 2 years ago

stephan-nordnes-eriksen commented 3 years ago

Thanks for the great work on this project!

This is a very minor change, but it will prevent 3x branches, and make the code slightly cleaner :)