summaryrefslogtreecommitdiffstats
path: root/generate_pot.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate_pot.py')
-rwxr-xr-xgenerate_pot.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/generate_pot.py b/generate_pot.py
index f5cad5b62..efbdc7824 100755
--- a/generate_pot.py
+++ b/generate_pot.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
#
# Copyright (C) 2011-2013 Calum Lind <calumlind@gmail.com>
# Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com>
@@ -11,8 +10,6 @@
"""Parses Python and Javascript code for translation strings to create the 'deluge.pot' template for translators"""
-from __future__ import print_function, unicode_literals
-
import os
import re
from datetime import datetime
@@ -91,7 +88,7 @@ with open(INFILES_LIST, 'w') as f:
call(xgettext_cmd + ['--language=Python', '-j'])
# Replace YEAR and PACKAGE in the copyright message
-with open(POT_FILEPATH, 'r') as f:
+with open(POT_FILEPATH) as f:
lines = f.readlines()
with open(POT_FILEPATH, 'w') as f:
for line in lines: