~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/testing/base.py

  • Committer: Duncan McGreggor
  • Date: 2009-09-05 00:26:12 UTC
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: duncan@canonical.com-20090905002612-cuk3ndv1tkpadgag
Replaced all occurances of ' in all the modules with " (excepting proper usage
of apostrophes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    def _stash_environ(self):
14
14
        self.orig_environ = dict(os.environ)
15
15
        self.addCleanup(self._restore_environ)
16
 
        if 'AWS_ACCESS_KEY_ID' in os.environ:
17
 
            del os.environ['AWS_ACCESS_KEY_ID']
18
 
        if 'AWS_SECRET_ACCESS_KEY' in os.environ:
19
 
            del os.environ['AWS_SECRET_ACCESS_KEY']
 
16
        if "AWS_ACCESS_KEY_ID" in os.environ:
 
17
            del os.environ["AWS_ACCESS_KEY_ID"]
 
18
        if "AWS_SECRET_ACCESS_KEY" in os.environ:
 
19
            del os.environ["AWS_SECRET_ACCESS_KEY"]
20
20
 
21
21
    def _restore_environ(self):
22
22
        for key in set(os.environ) - set(self.orig_environ):