mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +00:00
Merge #2088: Update Zenmap to Python 3 and PyGObject
Note: Ndiff build will be broken until subsequent changes are made. Deprecation warnings will need to be addressed in future changes. Closes #2088
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# ***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||
# * *
|
||||
@@ -103,10 +102,10 @@ def install_gettext(locale_dir):
|
||||
else:
|
||||
t = gettext.translation(
|
||||
APP_NAME, locale_dir, languages=get_locales(), fallback=True)
|
||||
t.install(unicode=True)
|
||||
t.install()
|
||||
|
||||
# Install a dummy _ function so modules can safely use it after importing this
|
||||
# module, even if they don't install the gettext version.
|
||||
|
||||
import __builtin__
|
||||
__builtin__.__dict__["_"] = lambda s: s
|
||||
import builtins
|
||||
builtins.__dict__["_"] = lambda s: s
|
||||
|
||||
Reference in New Issue
Block a user