Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b493c3

Browse files
committed
Future imports
1 parent 9b0b095 commit 0b493c3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def run(self):
4646
fp.write(b'# instead, re-run `setup.py build_regexes` #\n')
4747
fp.write(b'############################################\n')
4848
fp.write(b'\n')
49+
fp.write(b'from __future__ import absolute_import\n')
4950
fp.write(b'from .user_agent_parser import (\n')
5051
fp.write(b' UserAgentParser, DeviceParser, OSParser,\n')
5152
fp.write(b')\n')

ua_parser/user_agent_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
"""Python implementation of the UA parser."""
1818

19+
from __future__ import absolute_import
20+
1921
__author__ = 'Lindsey Simon <[email protected]>'
2022

2123
import os

ua_parser/user_agent_parser_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"""
2424

2525

26-
from __future__ import unicode_literals
26+
from __future__ import unicode_literals, absolute_import
2727

2828
__author__ = '[email protected] (Stephen Lamm)'
2929

0 commit comments

Comments
 (0)