Changeset 4b80299 in trunk


Ignore:
Timestamp:
2012-05-14T03:23:52Z (13 years ago)
Author:
david-sarah <david-sarah@…>
Branches:
master
Children:
bf7e351
Parents:
1e2657ef
Message:

Suppress the PowmInsecureWarning? from PyCrypto?. refs #1586

Location:
src/allmydata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/__init__.py

    r1e2657ef r4b80299  
    146146    import warnings
    147147    from _auto_deps import package_imports, deprecation_messages, \
    148         user_warning_messages, warning_imports
     148        user_warning_messages, runtime_warning_messages, warning_imports
    149149
    150150    def package_dir(srcfile):
     
    170170    for msg in user_warning_messages:
    171171        warnings.filterwarnings("ignore", category=UserWarning, message=msg, append=True)
     172    for msg in runtime_warning_messages:
     173        warnings.filterwarnings("ignore", category=RuntimeWarning, message=msg, append=True)
    172174    try:
    173175        for modulename in warning_imports:
     
    177179                pass
    178180    finally:
    179         for ign in user_warning_messages:
    180             warnings.filters.pop()
    181         for ign in deprecation_messages:
     181        for ign in runtime_warning_messages + user_warning_messages + deprecation_messages:
    182182            warnings.filters.pop()
    183183
  • TabularUnified src/allmydata/_auto_deps.py

    r1e2657ef r4b80299  
    116116]
    117117
     118runtime_warning_messages = [
     119    "Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.",
     120]
     121
    118122warning_imports = [
    119123    'nevow',
Note: See TracChangeset for help on using the changeset viewer.