Skip to content

Commit 7a187bf

Browse files
committed
Remove Python 2 compatability in imports section
1 parent c8bc526 commit 7a187bf

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

submit.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
32
import argparse
3+
import configparser
44
import os
55
import re
6+
import requests
67
import sys
78
import time
89

9-
import requests
10-
import requests.exceptions
11-
1210
from lxml.html import fragment_fromstring
1311

14-
# Python 2/3 compatibility
15-
if sys.version_info[0] >= 3:
16-
import configparser
17-
else:
18-
# Python 2, import modules with Python 3 names
19-
import ConfigParser as configparser
20-
21-
# End Python 2/3 compatibility
22-
2312
_DEFAULT_CONFIG = '/usr/local/etc/kattisrc'
2413
_LANGUAGE_GUESS = {
2514
'.c': 'C',

0 commit comments

Comments
 (0)