Skip to content

Commit

Permalink
[3004][s] Move polib import into paster command method
Browse files Browse the repository at this point in the history
Moving from module level in order to not require polib
for paster commands.
  • Loading branch information
stefanw committed Dec 12, 2012
1 parent 67a6121 commit 624e2a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/i18n/check_po_files.py
Expand Up @@ -11,7 +11,6 @@
'''
import re
import polib
import paste.script.command

def simple_conv_specs(s):
Expand Down Expand Up @@ -98,6 +97,8 @@ class CheckPoFiles(paste.script.command.Command):
parser = paste.script.command.Command.standard_parser(verbose=True)

def command(self):
import polib

test_simple_conv_specs()
test_mapping_keys()
test_replacement_fields()
Expand Down

0 comments on commit 624e2a2

Please sign in to comment.