File: custom_modifies_os_environ.py

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (12 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
# https://github.com/dw/mitogen/issues/297

from __future__ import (absolute_import, division, print_function)

import os

class VarsModule(object):
    def __init__(self, *args):
        os.environ['EVIL_VARS_PLUGIN'] = 'YIPEEE'

    def get_vars(self, loader, path, entities, cache=True):
        return {}