mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-28 15:48:16 +00:00
remove unnecessary global statements
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3119 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
02ecf152c6
commit
31e853e0d7
1 changed files with 1 additions and 4 deletions
|
|
@ -50,7 +50,6 @@ def add (msgid, transtr, fuzzy):
|
|||
"""
|
||||
Add a non-fuzzy translation to the dictionary.
|
||||
"""
|
||||
global MESSAGES
|
||||
if not fuzzy and transtr and not transtr.startswith('\0'):
|
||||
MESSAGES[msgid] = transtr
|
||||
|
||||
|
|
@ -59,7 +58,6 @@ def generate ():
|
|||
"""
|
||||
Return the generated output.
|
||||
"""
|
||||
global MESSAGES
|
||||
keys = MESSAGES.keys()
|
||||
# the keys are sorted in the .mo file
|
||||
keys.sort()
|
||||
|
|
@ -102,8 +100,7 @@ def generate ():
|
|||
def make (filename, outfile):
|
||||
ID = 1
|
||||
STR = 2
|
||||
global MESSAGES
|
||||
MESSAGES = {}
|
||||
MESSAGES.clear()
|
||||
|
||||
# Compute .mo name from .po name and arguments
|
||||
if filename.endswith('.po'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue