File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
- from django .utils .translation import ugettext_lazy as _
1
+ import django
2
+
3
+ if django .get_version () >= '4' :
4
+ from django .utils .translation import gettext_lazy as _
5
+ else :
6
+ from django .utils .translation import ugettext_lazy as _
2
7
3
8
4
9
class FileLogReader (object ):
Original file line number Diff line number Diff line change 1
1
from __future__ import unicode_literals
2
2
3
+ import django
3
4
import os
4
5
# import re
5
6
import subprocess
6
- from subprocess import PIPE
7
7
from fnmatch import fnmatch
8
- from django .utils .translation import ugettext_lazy as _
8
+ from subprocess import PIPE
9
+
10
+ if django .get_version () >= '4' :
11
+ from django .utils .translation import gettext_lazy as _
12
+ else :
13
+ from django .utils .translation import ugettext_lazy as _
9
14
10
15
from log_reader import settings
11
16
Original file line number Diff line number Diff line change 9
9
10
10
setup (
11
11
name = 'django-log-reader' ,
12
- version = '1.1.5 ' ,
12
+ version = '1.1.6 ' ,
13
13
zip_safe = False ,
14
14
packages = find_packages (),
15
15
include_package_data = True ,
You can’t perform that action at this time.
0 commit comments