mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests: introduce a name for os.environb
On python 2 this is just os.environ, but on python 3 we need to get to os.environb in several places.
This commit is contained in:
parent
36659f92fa
commit
ebd29548f7
@ -66,6 +66,8 @@ except ImportError:
|
||||
from xml.dom import minidom
|
||||
import unittest
|
||||
|
||||
osenvironb = getattr(os, 'environb', os.environ)
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
|
Loading…
Reference in New Issue
Block a user