2515 lines
84 KiB
Plaintext
2515 lines
84 KiB
Plaintext
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:495
|
|
if _hextobyte is None:
|
|
_hextobyte = {(a + b).encode(): bytes([int(a + b, 16)])
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:522
|
|
if encoding is None:
|
|
encoding = 'utf-8'
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:524
|
|
if errors is None:
|
|
errors = 'replace'
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:854
|
|
if _typeprog is None:
|
|
_typeprog = re.compile('^([^/:]+):')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:867
|
|
if _hostprog is None:
|
|
_hostprog = re.compile('^//([^/?]*)(.*)$')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:883
|
|
if _userprog is None:
|
|
_userprog = re.compile('^(.*)@(.*)$')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:894
|
|
if _passwdprog is None:
|
|
_passwdprog = re.compile('^([^:]*):(.*)$',re.S)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:906
|
|
if _portprog is None:
|
|
_portprog = re.compile('^(.*):([0-9]*)$')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:923
|
|
if _nportprog is None:
|
|
_nportprog = re.compile('^(.*):(.*)$')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:941
|
|
if _queryprog is None:
|
|
_queryprog = re.compile('^(.*)\?([^?]*)$')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:952
|
|
if _tagprog is None:
|
|
_tagprog = re.compile('^(.*)#([^#]*)$')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/parse.py:969
|
|
if _valueprog is None:
|
|
_valueprog = re.compile('^([^=]*)=(.*)$')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/parse.py:396
|
|
url = '//' + (netloc or '') + url
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:274
|
|
if origin_req_host is None:
|
|
origin_req_host = request_host(self)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:727
|
|
if proxies is None:
|
|
proxies = getproxies()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:739
|
|
if proxy_type is None:
|
|
proxy_type = orig_type
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:853
|
|
if password_mgr is None:
|
|
password_mgr = HTTPPasswordMgr()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:935
|
|
if passwd is None:
|
|
passwd = HTTPPasswordMgr()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:1234
|
|
if cookiejar is None:
|
|
cookiejar = http.cookiejar.CookieJar()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:1373
|
|
if port is None:
|
|
port = ftplib.FTP_PORT
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:1550
|
|
if proxies is None:
|
|
proxies = getproxies()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:2195
|
|
if _localhost is None:
|
|
_localhost = socket.gethostbyname('localhost')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/urllib/request.py:2223
|
|
if _noheaders is None:
|
|
_noheaders = email.message_from_string("")
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1344
|
|
(mtype or 'text/plain', size, modified))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1385
|
|
user = user or ''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1386
|
|
passwd = passwd or ''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1668
|
|
garbage, path = splithost(path or "")
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1669
|
|
path, garbage = splitquery(path or "")
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1670
|
|
path, garbage = splitattr(path or "")
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1862
|
|
(mtype or 'text/plain', size, modified))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1891
|
|
user = unquote(user or '')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/urllib/request.py:1892
|
|
passwd = unquote(passwd or '')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/ssl.py:625
|
|
v = self._sslobj.read(len or 1024)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/socket.py:217
|
|
if buffering is None:
|
|
buffering = -1
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/socket.py:508
|
|
if sock is not None:
|
|
sock.close()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/ftplib.py:464
|
|
if callback is None:
|
|
callback = print_line
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/ftplib.py:729
|
|
if context is None:
|
|
context = ssl._create_stdlib_context(self.ssl_version,
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/server.py:424
|
|
if message is None:
|
|
message = shortmsg
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/server.py:426
|
|
if explain is None:
|
|
explain = longmsg
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/server.py:545
|
|
if timestamp is None:
|
|
timestamp = time.time()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookies.py:399
|
|
if attrs is None:
|
|
attrs = self._reserved
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/client.py:1207
|
|
if context is None:
|
|
context = ssl._create_default_https_context()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/client.py:1210
|
|
if check_hostname is None:
|
|
check_hostname = context.check_hostname
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookiejar.py:162
|
|
if hr is None: hr = 0
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookiejar.py:163
|
|
if min is None: min = 0
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookiejar.py:164
|
|
if sec is None: sec = 0
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookiejar.py:781
|
|
if now is None: now = time.time()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookiejar.py:1221
|
|
if policy is None:
|
|
policy = DefaultCookiePolicy()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/http/cookiejar.py:1548
|
|
if rfc2109_as_ns is None:
|
|
rfc2109_as_ns = not self._policy.rfc2965
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/http/cookiejar.py:269
|
|
if m is not None:
|
|
day, mon, yr, hr, min, sec, tz = m.groups()
|
|
else:
|
|
return None # bad format
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/http/cookiejar.py:312
|
|
if m is not None:
|
|
# XXX there's an extra bit of the timezone I'm ignoring here: is
|
|
# this the right thing to do?
|
|
yr, mon, day, hr, min, sec, tz, _ = m.groups()
|
|
else:
|
|
return None # bad format
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/http/cookiejar.py:1895
|
|
if k is not None:
|
|
lc = k.lower()
|
|
else:
|
|
lc = None
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/imaplib.py:744
|
|
if ssl_context is None:
|
|
ssl_context = ssl._create_stdlib_context()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/imaplib.py:855
|
|
if dat is None:
|
|
dat = b''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/imaplib.py:1469
|
|
PASSWD = getpass.getpass("IMAP password for %s on %s: " % (USER, host or "localhost"))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pyclbr.py:60
|
|
if super is None:
|
|
super = []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pyclbr.py:85
|
|
for key, value in _readmodule(module, path or []).items():
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pyclbr.py:97
|
|
return _readmodule(module, path or [])
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tarfile.py:620
|
|
if blockinfo is None:
|
|
blockinfo = [(0, size)]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tarfile.py:673
|
|
if size is None:
|
|
size = self.size - self.position
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tarfile.py:1764
|
|
if arcname is None:
|
|
arcname = name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tarfile.py:1887
|
|
if arcname is None:
|
|
arcname = name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tarfile.py:1970
|
|
if members is None:
|
|
members = self
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tarfile.py:351
|
|
self.name = name or ""
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tarfile.py:1557
|
|
filemode = filemode or "r"
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tarfile.py:1558
|
|
comptype = comptype or "tar"
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tarfile.py:1570
|
|
filemode = filemode or "r"
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tarfile.py:1571
|
|
comptype = comptype or "tar"
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/tarfile.py:1199
|
|
if match is not None:
|
|
pax_headers["hdrcharset"] = match.group(1).decode("utf-8")
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/tarfile.py:1758
|
|
if fileobj is not None:
|
|
name = fileobj.name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pydoc.py:496
|
|
if marginalia is None:
|
|
marginalia = '<tt>' + ' ' * width + '</tt>'
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pydoc.py:672
|
|
if docloc is not None:
|
|
docloc = '<br><a href="%(docloc)s">Module Reference</a>' % locals()
|
|
else:
|
|
docloc = ''
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pydoc.py:1004
|
|
if shadowed is None: shadowed = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pydoc.py:1592
|
|
if renderer is None:
|
|
renderer = text
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pydoc.py:1639
|
|
if done is None: done = {}
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pydoc.py:85
|
|
dir = os.path.abspath(dir or '.')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pydoc.py:491
|
|
''' % (bgcol, fgcol, title, fgcol, extras or ' ')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pydoc.py:1961
|
|
xrefs = (xrefs or '') + ' ' + more_xrefs
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pydoc.py:1992
|
|
xrefs = (xrefs or '') + ' ' + more_xrefs
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/pydoc.py:1618
|
|
if output is None:
|
|
pager(render_doc(thing, title, forceload))
|
|
else:
|
|
output.write(render_doc(thing, title, forceload, plaintext))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/hashlib.py:184
|
|
if dklen is None:
|
|
dklen = outer.digest_size
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/os.py:583
|
|
if env is None:
|
|
env = environ
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/os.py:610
|
|
if path_list is None:
|
|
path_list = defpath
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/os.py:469
|
|
if follow_symlinks or path.samestat(orig_st, stat(dirfd)):
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/os.py:363
|
|
if onerror is not None:
|
|
onerror(err)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tempfile.py:401
|
|
if dir is None:
|
|
dir = gettempdir()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tempfile.py:425
|
|
if dir is None:
|
|
dir = gettempdir()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tempfile.py:459
|
|
if dir is None:
|
|
dir = gettempdir()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tempfile.py:589
|
|
if dir is None:
|
|
dir = gettempdir()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/ctypes/util.py:157
|
|
return nums or [ sys.maxsize ]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/ctypes/__init__.py:146
|
|
if typecode is None:
|
|
# Most _type_ codes are the same as used in struct
|
|
typecode = typ._type_
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/ctypes/__init__.py:350
|
|
if handle is None:
|
|
self._handle = _dlopen(self._name, mode)
|
|
else:
|
|
self._handle = handle
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/warnings.py:170
|
|
if category is None:
|
|
category = UserWarning
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/warnings.py:211
|
|
if registry is None:
|
|
registry = {}
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/warnings.py:208
|
|
module = filename or "<unknown>"
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/warnings.py:26
|
|
line = linecache.getline(filename, lineno) if line is None else line
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/warnings.py:323
|
|
self._module = sys.modules['warnings'] if module is None else module
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/dis.py:240
|
|
if const_list is not None:
|
|
argval = const_list[const_index]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/statistics.py:461
|
|
if c is None:
|
|
c = mean(data)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/_weakrefset.py:22
|
|
if w is not None:
|
|
w._iterating.add(self)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/zipfile.py:374
|
|
if zip64 is None:
|
|
zip64 = file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/zipfile.py:1225
|
|
if path is None:
|
|
path = os.getcwd()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/zipfile.py:1236
|
|
if members is None:
|
|
members = self.namelist()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/zipfile.py:1331
|
|
if arcname is None:
|
|
arcname = filename
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/zipfile.py:1340
|
|
if compress_type is None:
|
|
zinfo.compress_type = self.compression
|
|
else:
|
|
zinfo.compress_type = compress_type
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/zipfile.py:1752
|
|
if args is None:
|
|
args = sys.argv[1:]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pdb.py:1224
|
|
if last is None:
|
|
last = first + 10
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pdb.py:1585
|
|
if t is None:
|
|
# sys.exc_info() returns (type, value, traceback) if an exception is
|
|
# being handled, otherwise it returns None
|
|
t = sys.exc_info()[2]
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pdb.py:935
|
|
count = int(arg or 1)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/pdb.py:955
|
|
count = int(arg or 1)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/posixpath.py:445
|
|
if start is None:
|
|
start = curdir
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/posixpath.py:300
|
|
if environ is None:
|
|
value = os.fsencode(os.environ[os.fsdecode(name)])
|
|
else:
|
|
value = environ[name]
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/xml/sax/expatreader.py:223
|
|
if bs is not None:
|
|
bs.close()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/sax/__init__.py:38
|
|
if errorHandler is None:
|
|
errorHandler = ErrorHandler()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/sax/_exceptions.py:92
|
|
if sysid is None:
|
|
sysid = "<unknown>"
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/sax/_exceptions.py:95
|
|
if linenum is None:
|
|
linenum = "?"
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/sax/_exceptions.py:98
|
|
if colnum is None:
|
|
colnum = "?"
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/dom/pulldom.py:325
|
|
if bufsize is None:
|
|
bufsize = default_bufsize
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xml/dom/pulldom.py:44
|
|
self._xmlns_attrs.append((prefix or 'xmlns', uri))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/dom/expatbuilder.py:138
|
|
if options is None:
|
|
options = xmlbuilder.Options()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/dom/xmlbuilder.py:359
|
|
if snode is None:
|
|
snode = self
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/etree/ElementTree.py:1225
|
|
if events is None:
|
|
events = ("end",)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/etree/ElementTree.py:1389
|
|
if element_factory is None:
|
|
element_factory = Element
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/etree/ElementTree.py:1468
|
|
if target is None:
|
|
target = TreeBuilder()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xml/etree/ElementTree.py:937
|
|
if text or len(elem) or not short_empty_elements:
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xml/etree/ElementTree.py:1223
|
|
self._parser = _parser or XMLParser(target=TreeBuilder())
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xml/etree/ElementTree.py:1523
|
|
append((event, (prefix or "", uri or "")))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xml/etree/ElementTree.py:1523
|
|
append((event, (prefix or "", uri or "")))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xml/etree/ElementInclude.py:100
|
|
if loader is None:
|
|
loader = default_loader
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/weakref.py:512
|
|
obj = info and info.weakref()
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/weakref.py:520
|
|
obj = info and info.weakref()
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/weakref.py:543
|
|
obj = info and info.weakref()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pprint.py:132
|
|
if stream is not None:
|
|
self._stream = stream
|
|
else:
|
|
self._stream = _sys.stdout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pprint.py:410
|
|
if object is None:
|
|
object = [("string", (1, 2), [3, 4], {5: 6, 7: 8})] * 100000
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/json/decoder.py:145
|
|
if memo is None:
|
|
memo = {}
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/json/decoder.py:216
|
|
if object_hook is not None:
|
|
pairs = object_hook(pairs)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/json/scanner.py:52
|
|
res = parse_float(integer + (frac or '') + (exp or ''))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/json/scanner.py:52
|
|
res = parse_float(integer + (frac or '') + (exp or ''))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/json/__init__.py:231
|
|
if cls is None:
|
|
cls = JSONEncoder
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/json/__init__.py:319
|
|
if cls is None:
|
|
cls = JSONDecoder
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/json/encoder.py:147
|
|
if separators is not None:
|
|
self.item_separator, self.key_separator = separators
|
|
elif indent is not None:
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/timeit.py:243
|
|
if args is None:
|
|
args = sys.argv[1:]
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/timeit.py:290
|
|
if _wrap_timer is not None:
|
|
timer = _wrap_timer(timer)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/smtplib.py:835
|
|
if from_addr is None:
|
|
# Prefer the sender field per RFC 2822:3.6.2.
|
|
from_addr = (msg[header_prefix + 'Sender']
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/profile.py:151
|
|
if bias is None:
|
|
bias = self.bias
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pickletools.py:2391
|
|
if memo is None:
|
|
memo = {} # crude emulation of unpickler memo
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/pickletools.py:2241
|
|
"<unknown>" if pos is None else pos,
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/collections/__init__.py:852
|
|
if m is None:
|
|
m = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/managers.py:357
|
|
if exposed is None:
|
|
exposed = public_methods(obj)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/managers.py:444
|
|
if authkey is None:
|
|
authkey = process.current_process().authkey
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/managers.py:620
|
|
if proxytype is None:
|
|
proxytype = AutoProxy
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/managers.py:896
|
|
if authkey is None:
|
|
authkey = process.current_process().authkey
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/managers.py:452
|
|
self._ctx = ctx or get_context()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/managers.py:623
|
|
exposed = exposed or getattr(proxytype, '_exposed_', None)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/managers.py:625
|
|
method_to_typeid = method_to_typeid or \
|
|
getattr(proxytype, '_method_to_typeid_', None)
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/multiprocessing/managers.py:245
|
|
typeid = gettypeid and gettypeid.get(methodname, None)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/multiprocessing/managers.py:351
|
|
if callable is None:
|
|
assert len(args) == 1 and not kwds
|
|
obj = args[0]
|
|
else:
|
|
obj = callable(*args, **kwds)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/multiprocessing/managers.py:513
|
|
if initializer is not None:
|
|
initializer(*initargs)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/synchronize.py:52
|
|
if ctx is None:
|
|
ctx = context._default_context.get_context()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/synchronize.py:214
|
|
self._lock = lock or ctx.RLock()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/util.py:160
|
|
self._kwargs = kwargs or {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/connection.py:194
|
|
if size is None:
|
|
size = n - offset
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/connection.py:441
|
|
address = address or arbitrary_address(family)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/connection.py:490
|
|
family = family or address_type(address)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/sharedctypes.py:77
|
|
ctx = ctx or get_context()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/sharedctypes.py:91
|
|
ctx = ctx or get_context()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/sharedctypes.py:104
|
|
ctx = ctx or get_context()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/sharedctypes.py:186
|
|
ctx = ctx or get_context(force=True)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/pool.py:158
|
|
if processes is None:
|
|
processes = os.cpu_count() or 1
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/multiprocessing/pool.py:149
|
|
self._ctx = context or get_context()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/multiprocessing/pool.py:102
|
|
if initializer is not None:
|
|
initializer(*initargs)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/multiprocessing/spawn.py:174
|
|
if main_mod_name is not None:
|
|
d['init_main_from_name'] = main_mod_name
|
|
elif sys.platform != 'win32' or (not WINEXE and not WINSERVICE):
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/sre_parse.py:92
|
|
if data is None:
|
|
data = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/sre_parse.py:392
|
|
if prefix is None:
|
|
prefix = item[0]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/sre_parse.py:755
|
|
if pattern is None:
|
|
pattern = Pattern()
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/sre_parse.py:856
|
|
literals = [None if s is None else s.encode('latin-1') for s in literals]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/locale.py:497
|
|
if language is None:
|
|
language = 'C'
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1619
|
|
print('Language: ', lang or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1620
|
|
print('Encoding: ', enc or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1628
|
|
print(' Language: ', lang or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1629
|
|
print(' Encoding: ', enc or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1639
|
|
print(' Language: ', lang or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1640
|
|
print(' Encoding: ', enc or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1656
|
|
print(' Language: ', lang or '(undefined)')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/locale.py:1657
|
|
print(' Encoding: ', enc or '(undefined)')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xmlrpc/server.py:214
|
|
if name is None:
|
|
name = function.__name__
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xmlrpc/server.py:168
|
|
self.encoding = encoding or 'utf-8'
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xmlrpc/server.py:604
|
|
self.encoding = encoding or 'utf-8'
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/xmlrpc/server.py:253
|
|
if dispatch_method is not None:
|
|
response = dispatch_method(method, params)
|
|
else:
|
|
response = self._dispatch(method, params)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/xmlrpc/client.py:387
|
|
if data is None:
|
|
data = b""
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xmlrpc/client.py:1353
|
|
None, context=self.context, **(x509 or {}))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/xmlrpc/client.py:1420
|
|
self.__encoding = encoding or 'utf-8'
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/nntplib.py:173
|
|
parts.append(v.decode(enc or 'ascii'))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/nntplib.py:828
|
|
cmd += ' {0}-{1}'.format(start, end or '')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/gettext.py:355
|
|
if localedir is None:
|
|
localedir = _default_localedir
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/gettext.py:410
|
|
if class_ is None:
|
|
class_ = GNUTranslations
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/gettext.py:432
|
|
if result is None:
|
|
result = t
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/gettext.py:432
|
|
if result is None:
|
|
result = t
|
|
else:
|
|
result.add_fallback(t)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/wsgiref/headers.py:19
|
|
if quote or tspecials.search(value):
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/pathlib.py:919
|
|
if template is not None:
|
|
self._accessor = template._accessor
|
|
else:
|
|
self._accessor = _normal_accessor
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/mime/audio.py:67
|
|
if _subtype is None:
|
|
_subtype = _whatsnd(_audiodata)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/mime/image.py:40
|
|
if _subtype is None:
|
|
_subtype = imghdr.what(None, _imagedata)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/contentmanager.py:47
|
|
if full_path_for_error is None:
|
|
full_path_for_error = full_path
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/email/contentmanager.py:209
|
|
cte = '8bit' if cte is None else cte
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/header.py:209
|
|
if charset is None:
|
|
charset = USASCII
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/header.py:218
|
|
if maxlinelen is None:
|
|
maxlinelen = MAXLINELEN
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/header.py:289
|
|
if charset is None:
|
|
charset = self._charset
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/header.py:350
|
|
if maxlinelen is None:
|
|
maxlinelen = self._maxlinelen
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/header.py:572
|
|
if startval is None:
|
|
startval = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/utils.py:156
|
|
if timeval is None:
|
|
timeval = time.time()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/utils.py:216
|
|
if idstring is None:
|
|
idstring = ''
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/utils.py:220
|
|
if domain is None:
|
|
domain = socket.getfqdn()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/utils.py:272
|
|
if language is None:
|
|
language = ''
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/utils.py:344
|
|
if charset is None:
|
|
# Issue 17369: if charset/lang is None, decode_rfc2231 couldn't parse
|
|
# the value, so use the fallback_charset.
|
|
charset = fallback_charset
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/email/utils.py:269
|
|
s = urllib.parse.quote(s, safe='', encoding=charset or 'ascii')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/generator.py:257
|
|
if subparts is None:
|
|
subparts = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/generator.py:475
|
|
if fmt is None:
|
|
self._fmt = _FMT
|
|
else:
|
|
self._fmt = fmt
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/email/generator.py:191
|
|
if meth is None:
|
|
self._write_headers(msg)
|
|
else:
|
|
meth(self)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/_parseaddr.py:460
|
|
if atomends is None:
|
|
atomends = self.atomends
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/iterators.py:61
|
|
if fp is None:
|
|
fp = sys.stdout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/message.py:1068
|
|
if content_manager is None:
|
|
content_manager = self.policy.content_manager
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/message.py:1073
|
|
if content_manager is None:
|
|
content_manager = self.policy.content_manager
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/email/message.py:67
|
|
if quote or tspecials.search(value):
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/email/message.py:153
|
|
policy = self.policy if policy is None else policy
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/email/message.py:176
|
|
policy = self.policy if policy is None else policy
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/email/_header_value_parser.py:130
|
|
if stoken is None:
|
|
stoken = str(token)
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/email/_header_value_parser.py:2591
|
|
while value and value[0].isdigit():
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/concurrent/futures/process.py:334
|
|
if max_workers is None:
|
|
self._max_workers = os.cpu_count() or 1
|
|
else:
|
|
self._max_workers = max_workers
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/threading.py:211
|
|
if lock is None:
|
|
lock = RLock()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/threading.py:604
|
|
if timeout is None:
|
|
timeout = self._timeout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/threading.py:785
|
|
if kwargs is None:
|
|
kwargs = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/threading.py:791
|
|
if daemon is not None:
|
|
self._daemonic = daemon
|
|
else:
|
|
self._daemonic = current_thread().daemon
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/threading.py:788
|
|
self._name = str(name or _newname())
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/threading.py:1175
|
|
self.args = args if args is not None else []
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/threading.py:1176
|
|
self.kwargs = kwargs if kwargs is not None else {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:363
|
|
if frame is None:
|
|
frame = sys._getframe().f_back
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:469
|
|
if options is None: options = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:1187
|
|
if verbose is None:
|
|
verbose = '-v' in sys.argv
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:1428
|
|
if compileflags is None:
|
|
compileflags = _extract_future_flags(test.globs)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:1490
|
|
if verbose is None:
|
|
verbose = self._verbose
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:1916
|
|
if m is None:
|
|
# DWA - m will still be None if this wasn't invoked from the command
|
|
# line, in which case the following TypeError is about as good an error
|
|
# as we should expect
|
|
m = sys.modules.get('__main__')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:1927
|
|
if name is None:
|
|
name = m.__name__
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:1944
|
|
if master is None:
|
|
master = runner
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:2042
|
|
if name is None:
|
|
name = os.path.basename(filename)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:2046
|
|
if globs is None:
|
|
globs = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:2067
|
|
if master is None:
|
|
master = runner
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:2359
|
|
if test_finder is None:
|
|
test_finder = DocTestFinder()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/doctest.py:2412
|
|
if globs is None:
|
|
globs = {}
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/doctest.py:1186
|
|
self._checker = checker or OutputChecker()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/doctest.py:2039
|
|
encoding or "utf-8")
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/doctest.py:2423
|
|
encoding or "utf-8")
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/doctest.py:908
|
|
if globs is None:
|
|
if module is None:
|
|
globs = {}
|
|
else:
|
|
globs = module.__dict__.copy()
|
|
else:
|
|
globs = globs.copy()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/doctest.py:1944
|
|
if master is None:
|
|
master = runner
|
|
else:
|
|
master.merge(runner)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/doctest.py:2046
|
|
if globs is None:
|
|
globs = {}
|
|
else:
|
|
globs = globs.copy()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/doctest.py:2067
|
|
if master is None:
|
|
master = runner
|
|
else:
|
|
master.merge(runner)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/doctest.py:2412
|
|
if globs is None:
|
|
globs = {}
|
|
else:
|
|
globs = globs.copy()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:126
|
|
if map is None:
|
|
map = socket_map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:169
|
|
if map is None:
|
|
map = socket_map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:198
|
|
if map is None:
|
|
map = socket_map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:226
|
|
if map is None:
|
|
self._map = socket_map
|
|
else:
|
|
self._map = map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:274
|
|
if map is None:
|
|
map = self._map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:280
|
|
if map is None:
|
|
map = self._map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncore.py:576
|
|
if map is None:
|
|
map = socket_map
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bdb.py:211
|
|
if lineno is None:
|
|
lineno = frame.f_lineno + 1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bdb.py:243
|
|
if frame is None:
|
|
frame = sys._getframe().f_back
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bdb.py:424
|
|
if locals is None:
|
|
locals = globals
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bdb.py:442
|
|
if locals is None:
|
|
locals = globals
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bdb.py:536
|
|
if out is None:
|
|
out = sys.stdout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/cgi.py:140
|
|
if fp is None:
|
|
fp = sys.stdin
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shelve.py:87
|
|
if protocol is None:
|
|
protocol = 3
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tkinter/filedialog.py:52
|
|
if title is None: title = self.title
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tkinter/filedialog.py:218
|
|
self.filter.insert(END, os.path.join(dir or os.curdir, pat or "*"))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tkinter/__init__.py:489
|
|
if window is None:
|
|
window = self
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tkinter/__init__.py:497
|
|
if window is None:
|
|
window = self
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/tkinter/__init__.py:2782
|
|
if index2 is None:
|
|
index2 = index1
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tkinter/ttk.py:184
|
|
opts = opts or {}
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tkinter/ttk.py:665
|
|
Widget.__init__(self, master, widget or "ttk::entry", kw)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/tkinter/ttk.py:1490
|
|
self._variable = variable or tkinter.IntVar(master)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/code.py:33
|
|
if locals is None:
|
|
locals = {"__name__": "__console__", "__doc__": None}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/code.py:291
|
|
if readfunc is not None:
|
|
console.raw_input = readfunc
|
|
else:
|
|
try:
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/plistlib.py:331
|
|
if handler is not None:
|
|
handler(attrs)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/plistlib.py:336
|
|
if handler is not None:
|
|
handler()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/uu.py:72
|
|
if name is None:
|
|
name = '-'
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/uu.py:74
|
|
if mode is None:
|
|
mode = 0o666
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/uu.py:124
|
|
if mode is None:
|
|
mode = int(hdrfields[1], 8)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/contextlib.py:42
|
|
if doc is None:
|
|
doc = type(self).__doc__
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/subprocess.py:764
|
|
if bufsize is None:
|
|
bufsize = -1 # Restore default
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/runpy.py:179
|
|
if run_name is None:
|
|
run_name = mod_name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/runpy.py:226
|
|
if run_name is None:
|
|
run_name = "<run_path>"
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/runpy.py:92
|
|
fname = script_name if mod_spec is None else mod_spec.origin
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/cgitb.py:271
|
|
info = info or sys.exc_info()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/asyncio/unix_events.py:418
|
|
if not (is_socket or
|
|
stat.S_ISFIFO(mode) or
|
|
stat.S_ISCHR(mode)):
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/unix_events.py:939
|
|
if callback is None:
|
|
logger.warning(
|
|
"Caught subprocess termination from unknown pid: "
|
|
"%d -> %d", pid, returncode)
|
|
else:
|
|
callback(pid, returncode, *args)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/proactor_events.py:475
|
|
if f is not None:
|
|
f.result() # may raise
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/futures.py:150
|
|
if loop is None:
|
|
self._loop = events.get_event_loop()
|
|
else:
|
|
self._loop = loop
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/futures.py:397
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/streams.py:58
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/streams.py:92
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/streams.py:148
|
|
if loop is None:
|
|
self._loop = events.get_event_loop()
|
|
else:
|
|
self._loop = loop
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/streams.py:311
|
|
if loop is None:
|
|
self._loop = events.get_event_loop()
|
|
else:
|
|
self._loop = loop
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/tasks.py:56
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/tasks.py:66
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/tasks.py:327
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/tasks.py:354
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/asyncio/tasks.py:451
|
|
loop = loop if loop is not None else events.get_event_loop()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/tasks.py:417
|
|
if timeout_handle is not None:
|
|
timeout_handle.cancel()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/subprocess.py:192
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/subprocess.py:206
|
|
if loop is None:
|
|
loop = events.get_event_loop()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/subprocess.py:69
|
|
if reader is not None:
|
|
reader.feed_data(data)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/queues.py:42
|
|
if loop is None:
|
|
self._loop = events.get_event_loop()
|
|
else:
|
|
self._loop = loop
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/base_events.py:729
|
|
if sock is not None:
|
|
sock.close()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/base_events.py:733
|
|
if sock is not None:
|
|
sock.close()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/windows_events.py:302
|
|
if proactor is None:
|
|
proactor = IocpProactor()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/transports.py:16
|
|
if extra is None:
|
|
extra = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/transports.py:287
|
|
if low is None:
|
|
low = high // 4
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/locks.py:99
|
|
if loop is not None:
|
|
self._loop = loop
|
|
else:
|
|
self._loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/locks.py:194
|
|
if loop is not None:
|
|
self._loop = loop
|
|
else:
|
|
self._loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/locks.py:259
|
|
if loop is not None:
|
|
self._loop = loop
|
|
else:
|
|
self._loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/locks.py:264
|
|
if lock is None:
|
|
lock = Lock(loop=self._loop)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/locks.py:391
|
|
if loop is not None:
|
|
self._loop = loop
|
|
else:
|
|
self._loop = events.get_event_loop()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/asyncio/selector_events.py:51
|
|
if selector is None:
|
|
selector = selectors.DefaultSelector()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/selector_events.py:242
|
|
if reader is not None:
|
|
reader.cancel()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/asyncio/selector_events.py:280
|
|
if writer is not None:
|
|
writer.cancel()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/copy.py:143
|
|
if memo is None:
|
|
memo = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/copy.py:276
|
|
if memo is None:
|
|
memo = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/enum.py:333
|
|
if module is None:
|
|
_make_class_unpicklable(enum_class)
|
|
else:
|
|
enum_class.__module__ = module
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/string.py:44
|
|
return (sep or ' ').join(x.capitalize() for x in s.split(sep))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/platform.py:1251
|
|
if sys_version is None:
|
|
sys_version = sys.version
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/platform.py:181
|
|
s.decode('latin1') if s is not None else s
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_osx_support.py:35
|
|
if path is None:
|
|
path = os.environ['PATH']
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/codecs.py:925
|
|
if file_encoding is None:
|
|
file_encoding = data_encoding
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/codecs.py:249
|
|
self.buffer = state or ""
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/codecs.py:547
|
|
readsize = size or 72
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/textwrap.py:419
|
|
if margin is None:
|
|
margin = indent
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/trace.py:505
|
|
if globals is None: globals = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/trace.py:506
|
|
if locals is None: locals = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/trace.py:659
|
|
if argv is None:
|
|
argv = sys.argv
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/poplib.py:387
|
|
if context is None:
|
|
context = ssl._create_stdlib_context()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/modulefinder.py:75
|
|
if path is None:
|
|
path = sys.path
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/modulefinder.py:267
|
|
parent and parent.__path__, parent)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/base64.py:206
|
|
if _b32rev is None:
|
|
_b32rev = {v: k for k, v in enumerate(_b32alphabet)}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/gzip.py:186
|
|
if mode is None:
|
|
mode = getattr(fileobj, 'mode', 'rb')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/gzip.py:269
|
|
if mtime is None:
|
|
mtime = time.time()
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/gzip.py:181
|
|
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/optparse.py:1040
|
|
if option is None:
|
|
option = self._long_opt.get(opt_str)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/optparse.py:1195
|
|
if formatter is None:
|
|
formatter = IndentedHelpFormatter()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/optparse.py:1369
|
|
if values is None:
|
|
values = self.get_default_values()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/optparse.py:1607
|
|
if formatter is None:
|
|
formatter = self.formatter
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/optparse.py:1627
|
|
if formatter is None:
|
|
formatter = self.formatter
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/optparse.py:1644
|
|
if file is None:
|
|
file = sys.stdout
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/test/pystone.py:174
|
|
if PtrGlb is not None:
|
|
PtrParOut = PtrGlb.PtrComp
|
|
else:
|
|
IntGlob = 100
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/test/regrtest.py:1514
|
|
return path or os.path.dirname(__file__) or os.curdir
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/test/regrtest.py:1475
|
|
if stream is not None:
|
|
stream.flush()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/test/support/__init__.py:200
|
|
if pattern is None:
|
|
pattern = "test*"
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/test/support/__init__.py:1228
|
|
if v is None:
|
|
if k in self._environ:
|
|
del self._environ[k]
|
|
else:
|
|
self._environ[k] = v
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/test/support/__init__.py:1527
|
|
if orig_tz is None:
|
|
del os.environ['TZ']
|
|
else:
|
|
os.environ['TZ'] = orig_tz
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/test/support/__init__.py:1838
|
|
if verbosity is None:
|
|
verbosity = verbose
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/test/support/__init__.py:305
|
|
dirname = dirname or '.'
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:299
|
|
if prefix is None:
|
|
prefix = _('usage: ')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:1047
|
|
if version is None:
|
|
version = parser.version
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:1629
|
|
if prog is None:
|
|
prog = _os.path.basename(_sys.argv[0])
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:1744
|
|
if args is None:
|
|
# args default to the system args
|
|
args = _sys.argv[1:]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:1752
|
|
if namespace is None:
|
|
namespace = Namespace()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:2361
|
|
if file is None:
|
|
file = _sys.stdout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/argparse.py:2366
|
|
if file is None:
|
|
file = _sys.stdout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/logging/handlers.py:816
|
|
if use_socktype is None:
|
|
use_socktype = socket.SOCK_DGRAM
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/logging/__init__.py:951
|
|
if stream is None:
|
|
stream = sys.stderr
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/logging/__init__.py:1351
|
|
if f is not None:
|
|
f = f.f_back
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/unittest/suite.py:177
|
|
if previousClass is not None:
|
|
previousModule = previousClass.__module__
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/unittest/main.py:68
|
|
if argv is None:
|
|
argv = sys.argv
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/unittest/main.py:224
|
|
loader = self.testLoader if Loader is None else Loader()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/unittest/mock.py:380
|
|
if _new_parent is None:
|
|
_new_parent = parent
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/unittest/mock.py:392
|
|
if _eat_self is None:
|
|
_eat_self = parent is not None
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/unittest/mock.py:2294
|
|
if mock is None:
|
|
mock = MagicMock(name='open', spec=open)
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/unittest/mock.py:452
|
|
_spec_signature = res and res[1]
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/unittest/mock.py:1765
|
|
if side_effector is not None:
|
|
method.side_effect = side_effector(mock)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/unittest/case.py:227
|
|
if first_matching is None:
|
|
first_matching = w
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/unittest/case.py:1267
|
|
msg = msg or "Regex didn't match"
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/unittest/case.py:1277
|
|
msg = msg or "Regex matched"
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/unittest/case.py:472
|
|
if addSkip is not None:
|
|
addSkip(test_case, reason)
|
|
else:
|
|
warnings.warn("TestResult has no addSkip method, skips not reported",
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/unittest/case.py:491
|
|
if parent is None:
|
|
params_map = collections.ChainMap(params)
|
|
else:
|
|
params_map = parent.params.new_child(params)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/unittest/runner.py:130
|
|
if stream is None:
|
|
stream = sys.stderr
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/unittest/runner.py:165
|
|
if startTestRun is not None:
|
|
startTestRun()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/unittest/runner.py:171
|
|
if stopTestRun is not None:
|
|
stopTestRun()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/functools.py:323
|
|
if result is None:
|
|
# If the underlying descriptor didn't do anything, treat this
|
|
# like an instance method
|
|
result = self._make_unbound_method().__get__(obj, cls)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/site.py:311
|
|
if prefixes is None:
|
|
prefixes = PREFIXES
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/site.py:570
|
|
if ENABLE_USER_SITE is None:
|
|
ENABLE_USER_SITE = check_enableusersite()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/turtle.py:913
|
|
if outline is None:
|
|
outline = fill
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/turtle.py:1972
|
|
if extent is None:
|
|
extent = self._fullcircle
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/turtle.py:2815
|
|
if outline is None:
|
|
outline = self._outlinewidth
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/turtle.py:3724
|
|
if startx is None:
|
|
startx = (sw - width) / 2
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/turtle.py:3728
|
|
if starty is None:
|
|
starty = (sh - height) / 2
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/socketserver.py:282
|
|
if timeout is None:
|
|
timeout = self.timeout
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/fileinput.py:100
|
|
if _state and _state._file:
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shutil.py:725
|
|
if extra_args is None:
|
|
extra_args = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shutil.py:766
|
|
if base_dir is None:
|
|
base_dir = os.curdir
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shutil.py:841
|
|
if extra_args is None:
|
|
extra_args = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shutil.py:938
|
|
if extract_dir is None:
|
|
extract_dir = os.getcwd()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shutil.py:1093
|
|
if path is None:
|
|
path = os.environ.get("PATH", os.defpath)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/shutil.py:298
|
|
if ignore is not None:
|
|
ignored_names = ignore(src, names)
|
|
else:
|
|
ignored_names = set()
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/shutil.py:610
|
|
if logger is not None:
|
|
logger.info('Creating tar archive')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/types.py:65
|
|
if kwds is None:
|
|
kwds = {}
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/types.py:50
|
|
if exec_body is not None:
|
|
exec_body(ns)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/FormatParagraph.py:47
|
|
if limit is None:
|
|
# The default length limit is that defined by pep8
|
|
limit = idleConf.GetOption(
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/StackViewer.py:29
|
|
if tb is None:
|
|
tb = sys.last_traceback
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/idlelib/ReplaceDialog.py:36
|
|
first = first or text.index("insert")
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/macosxSupport.py:155
|
|
if end is None:
|
|
end = -1
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/idlelib/HyperParser.py:53
|
|
parser.set_lo(bod or 0)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/EditorWindow.py:470
|
|
if end is None:
|
|
end = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/EditorWindow.py:1103
|
|
if keydefs is None:
|
|
keydefs = self.Bindings.default_keydefs
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/EditorWindow.py:1116
|
|
if menudefs is None:
|
|
menudefs = self.Bindings.menudefs
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/EditorWindow.py:1118
|
|
if keydefs is None:
|
|
keydefs = self.Bindings.default_keydefs
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/idlelib/EditorWindow.py:1358
|
|
y.set_lo(bod or 0)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/run.py:34
|
|
if file is None:
|
|
file = sys.stderr
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/idlelib/configDialog.py:39
|
|
self.title(title or 'IDLE Preferences')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/idlelib/configDialog.py:1256
|
|
self.wm_title(title or 'IDLE Extensions Configuration')
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/rpc.py:73
|
|
if handlerclass is None:
|
|
handlerclass = RPCHandler
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/rpc.py:134
|
|
if objtable is None:
|
|
objtable = objecttable
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/idlelib/rpc.py:143
|
|
if sock is not None:
|
|
sock.close()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/MultiStatusBar.py:6
|
|
if master is None:
|
|
master = Tk()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/PyShell.py:56
|
|
if line is None:
|
|
line = linecache.getline(filename, lineno)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/PyShell.py:72
|
|
if file is None:
|
|
file = warning_stream
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/PyShell.py:1362
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/PyShell.py:1385
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/idlelib/Debugger.py:55
|
|
if idb is None:
|
|
idb = Idb(self)
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/idlelib/TreeWidget.py:82
|
|
ext = ext or ".gif"
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/cmd.py:87
|
|
if stdin is not None:
|
|
self.stdin = stdin
|
|
else:
|
|
self.stdin = sys.stdin
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/cmd.py:91
|
|
if stdout is not None:
|
|
self.stdout = stdout
|
|
else:
|
|
self.stdout = sys.stdout
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/_threading_local.py:185
|
|
if local is not None:
|
|
dct = local.dicts.pop(idt)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pkgutil.py:298
|
|
if fullname is None:
|
|
fullname = self.fullname
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/pkgutil.py:492
|
|
return spec.loader if spec is not None else None
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/crypt.py:28
|
|
if method is None:
|
|
method = methods[0]
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/getopt.py:165
|
|
opts.append(('--' + opt, optarg or ''))
|
|
|
|
Safe navigation `and`: /usr/lib/python3.4/getopt.py:88
|
|
while args and args[0].startswith('-') and args[0] != '-':
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/mailbox.py:820
|
|
if from_line is None:
|
|
from_line = b'From MAILER-DAEMON ' + time.asctime(time.gmtime()).encode()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/mailbox.py:1919
|
|
if pos is None:
|
|
self._pos = f.tell()
|
|
else:
|
|
self._pos = pos
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/mailbox.py:1975
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/binhex.py:151
|
|
if finfo is None:
|
|
finfo = FInfo()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pickle.py:373
|
|
if protocol is None:
|
|
protocol = DEFAULT_PROTOCOL
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/pickle.py:904
|
|
if name is None:
|
|
name = obj.__name__
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/pickle.py:484
|
|
if reduce is not None:
|
|
rv = reduce(obj)
|
|
else:
|
|
# Check for a class with a custom metaclass; treat as regular class
|
|
try:
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/sysconfig.py:169
|
|
if vars is None:
|
|
vars = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/sysconfig.py:229
|
|
if vars is None:
|
|
vars = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/sysconfig.py:438
|
|
if vars is None:
|
|
vars = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:543
|
|
if ctx is None: ctx = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:823
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1098
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1120
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1162
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1272
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1326
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1427
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1470
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1500
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1577
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:1972
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2315
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2510
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2539
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2541
|
|
if rounding is None:
|
|
rounding = context.rounding
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2694
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2696
|
|
if rounding is None:
|
|
rounding = context.rounding
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2706
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2708
|
|
if rounding is None:
|
|
rounding = context.rounding
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2725
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2830
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:2872
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3045
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3145
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3165
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3201
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3281
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3342
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3388
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3405
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3412
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3429
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3448
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3478
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3506
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3529
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3561
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3625
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3644
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3677
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3702
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3769
|
|
if context is None:
|
|
context = getcontext()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/decimal.py:3911
|
|
if _ignored_flags is None:
|
|
self._ignored_flags = []
|
|
else:
|
|
self._ignored_flags = _ignored_flags
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/decimal.py:613
|
|
self._int = str(int(diag or '0')).lstrip('0')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/decimal.py:688
|
|
self._int = ''.join(map(str, digits or [0]))
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/decimal.py:6199
|
|
format_dict['fill'] = fill or ' '
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/decimal.py:6203
|
|
format_dict['align'] = align or '>'
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/decimal.py:3904
|
|
self.prec = prec if prec is not None else dc.prec
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/decimal.py:3905
|
|
self.rounding = rounding if rounding is not None else dc.rounding
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/decimal.py:3906
|
|
self.Emin = Emin if Emin is not None else dc.Emin
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/decimal.py:3907
|
|
self.Emax = Emax if Emax is not None else dc.Emax
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/decimal.py:3908
|
|
self.capitals = capitals if capitals is not None else dc.capitals
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/decimal.py:3909
|
|
self.clamp = clamp if clamp is not None else dc.clamp
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/decimal.py:791
|
|
if other is None:
|
|
other_is_nan = False
|
|
else:
|
|
other_is_nan = other._isnan()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/inspect.py:594
|
|
if _filename is None:
|
|
_filename = getsourcefile(object) or getfile(object)
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/inspect.py:2436
|
|
if kwdefaults is not None:
|
|
default = kwdefaults.get(name, _empty)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/filecmp.py:123
|
|
if hide is None:
|
|
self.hide = [os.curdir, os.pardir] # Names never to be shown
|
|
else:
|
|
self.hide = hide
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/filecmp.py:127
|
|
if ignore is None:
|
|
self.ignore = DEFAULT_IGNORES
|
|
else:
|
|
self.ignore = ignore
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/py_compile.py:157
|
|
if args is None:
|
|
args = sys.argv[1:]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/formatter.py:42
|
|
if writer is None:
|
|
writer = NullWriter()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:776
|
|
if year is None:
|
|
year = self._year
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:778
|
|
if month is None:
|
|
month = self._month
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:780
|
|
if day is None:
|
|
day = self._day
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1238
|
|
if hour is None:
|
|
hour = self.hour
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1240
|
|
if minute is None:
|
|
minute = self.minute
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1242
|
|
if second is None:
|
|
second = self.second
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1244
|
|
if microsecond is None:
|
|
microsecond = self.microsecond
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1419
|
|
if dst is None:
|
|
dst = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1463
|
|
if year is None:
|
|
year = self.year
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1465
|
|
if month is None:
|
|
month = self.month
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1467
|
|
if day is None:
|
|
day = self.day
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1469
|
|
if hour is None:
|
|
hour = self.hour
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1471
|
|
if minute is None:
|
|
minute = self.minute
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1473
|
|
if second is None:
|
|
second = self.second
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/datetime.py:1475
|
|
if microsecond is None:
|
|
microsecond = self.microsecond
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/datetime.py:1367
|
|
if tz is not None:
|
|
result = tz.fromutc(result)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:496
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:566
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:732
|
|
if pos is None:
|
|
pos = self.tell()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:847
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:908
|
|
if pos is None:
|
|
pos = self._pos
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1138
|
|
if pos is None:
|
|
pos = self.raw.tell()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1207
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1282
|
|
if pos is None:
|
|
pos = self.tell()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1288
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1524
|
|
if errors is None:
|
|
errors = "strict"
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1853
|
|
if pos is None:
|
|
pos = self.tell()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1938
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/_pyio.py:1973
|
|
if size is None:
|
|
size = -1
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/_pyio.py:396
|
|
if msg is None else msg)
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/_pyio.py:410
|
|
if msg is None else msg)
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/_pyio.py:424
|
|
if msg is None else msg)
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/_pyio.py:439
|
|
if msg is None else msg)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/traceback.py:27
|
|
if file is None:
|
|
file = sys.stderr
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/traceback.py:54
|
|
if limit is None:
|
|
limit = getattr(sys, 'tracebacklimit', None)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/traceback.py:121
|
|
if seen is None:
|
|
seen = set()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/traceback.py:167
|
|
if file is None:
|
|
file = sys.stderr
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/traceback.py:275
|
|
if f is None:
|
|
f = sys._getframe().f_back.f_back
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/uuid.py:585
|
|
if node is None:
|
|
node = getnode()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/calendar.py:468
|
|
if encoding is None:
|
|
encoding = sys.getdefaultencoding()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/calendar.py:510
|
|
if locale is None:
|
|
locale = _locale.getdefaultlocale()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/calendar.py:540
|
|
if locale is None:
|
|
locale = _locale.getdefaultlocale()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/importlib/_bootstrap.py:535
|
|
if name is None:
|
|
name = self.name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/importlib/_bootstrap.py:611
|
|
if name is not None:
|
|
exc_details['name'] = name
|
|
else:
|
|
# To prevent having to make all messages have a conditional name.
|
|
name = '<bytecode>'
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/importlib/_bootstrap.py:1114
|
|
if module is None:
|
|
# This must be done before open() is ever called as the 'io'
|
|
# module implicitly imports 'locale' and would otherwise
|
|
# trigger an infinite loop.
|
|
module = _new_module(spec.name)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/importlib/_bootstrap.py:1938
|
|
if path is None:
|
|
path = sys.path
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/importlib/_bootstrap.py:1988
|
|
self.path = path or '.'
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/importlib/_bootstrap.py:2065
|
|
contents = _os.listdir(path or _os.getcwd())
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/importlib/_bootstrap.py:450
|
|
debug = not sys.flags.optimize if debug_override is None else debug_override
|
|
|
|
None-coalescing ternary: /usr/lib/python3.4/importlib/_bootstrap.py:2336
|
|
globals_ = globals if globals is not None else {}
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/importlib/_bootstrap.py:1285
|
|
return spec.loader if spec is not None else None
|
|
|
|
Safe navigation ternary: /usr/lib/python3.4/importlib/abc.py:60
|
|
return found.loader if found is not None else None
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/fancy_getopt.py:221
|
|
if args is None:
|
|
args = sys.argv[1:]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/fancy_getopt.py:361
|
|
if file is None:
|
|
file = sys.stdout
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:313
|
|
if outdir is None:
|
|
outdir = self.output_dir
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:318
|
|
if macros is None:
|
|
macros = self.macros
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:325
|
|
if incdirs is None:
|
|
incdirs = self.include_dirs
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:333
|
|
if extra is None:
|
|
extra = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:372
|
|
if output_dir is None:
|
|
output_dir = self.output_dir
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:377
|
|
if macros is None:
|
|
macros = self.macros
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:384
|
|
if include_dirs is None:
|
|
include_dirs = self.include_dirs
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:420
|
|
if output_dir is None:
|
|
output_dir = self.output_dir
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:434
|
|
if libraries is None:
|
|
libraries = self.libraries
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:442
|
|
if library_dirs is None:
|
|
library_dirs = self.library_dirs
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:450
|
|
if runtime_library_dirs is None:
|
|
runtime_library_dirs = self.runtime_library_dirs
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:770
|
|
if includes is None:
|
|
includes = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:772
|
|
if include_dirs is None:
|
|
include_dirs = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:774
|
|
if libraries is None:
|
|
libraries = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:776
|
|
if library_dirs is None:
|
|
library_dirs = []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:847
|
|
if output_dir is None:
|
|
output_dir = ''
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:946
|
|
if osname is None:
|
|
osname = os.name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:948
|
|
if platform is None:
|
|
platform = sys.platform
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:1000
|
|
if plat is None:
|
|
plat = os.name
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/ccompiler.py:1004
|
|
if compiler is None:
|
|
compiler = get_default_compiler(plat)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/versionpredicate.py:155
|
|
if _provision_rx is None:
|
|
_provision_rx = re.compile(
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/archive_util.py:220
|
|
if base_dir is None:
|
|
base_dir = os.curdir
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/msvc9compiler.py:341
|
|
if plat_name is None:
|
|
plat_name = get_platform()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/msvc9compiler.py:430
|
|
if output_dir is None: output_dir = ''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/msvc9compiler.py:465
|
|
compile_opts = extra_preargs or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/msvc9compiler.py:610
|
|
for sym in (export_symbols or []):
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/cygwinccompiler.py:254
|
|
if output_dir is None:
|
|
output_dir = ''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/cygwinccompiler.py:180
|
|
extra_preargs = copy.copy(extra_preargs or [])
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/cygwinccompiler.py:181
|
|
libraries = copy.copy(libraries or [])
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/cygwinccompiler.py:182
|
|
objects = copy.copy(objects or [])
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/util.py:367
|
|
if direct is None:
|
|
direct = (__debug__ and optimize == 0)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/util.py:498
|
|
if fixer_names is None:
|
|
fixer_names = get_fixers_from_package('lib2to3.fixes')
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/util.py:456
|
|
if force or newer(file, cfile):
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/msvccompiler.py:315
|
|
if output_dir is None: output_dir = ''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/msvccompiler.py:350
|
|
compile_opts = extra_preargs or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/msvccompiler.py:495
|
|
for sym in (export_symbols or []):
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/dist.py:296
|
|
if commands is None: # dump all command option dicts
|
|
commands = sorted(self.command_options.keys())
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/dist.py:384
|
|
if filenames is None:
|
|
filenames = self.find_config_files()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/dist.py:871
|
|
if option_dict is None:
|
|
option_dict = self.get_option_dict(command_name)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/command/bdist_rpm.py:356
|
|
if source_rpm is None:
|
|
source_rpm = l[0]
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/bcppcompiler.py:338
|
|
if output_dir is None: output_dir = ''
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/bcppcompiler.py:88
|
|
compile_opts = extra_preargs or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/bcppcompiler.py:226
|
|
for sym in (export_symbols or []):
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:112
|
|
self.include_dirs = include_dirs or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:113
|
|
self.define_macros = define_macros or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:114
|
|
self.undef_macros = undef_macros or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:115
|
|
self.library_dirs = library_dirs or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:116
|
|
self.libraries = libraries or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:117
|
|
self.runtime_library_dirs = runtime_library_dirs or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:118
|
|
self.extra_objects = extra_objects or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:119
|
|
self.extra_compile_args = extra_compile_args or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:120
|
|
self.extra_link_args = extra_link_args or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:121
|
|
self.export_symbols = export_symbols or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:122
|
|
self.swig_opts = swig_opts or []
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/distutils/extension.py:123
|
|
self.depends = depends or []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/text_file.py:128
|
|
if line is None:
|
|
line = self.current_line
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/cmd.py:153
|
|
if header is None:
|
|
header = "command options for '%s':" % self.get_command_name()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/cmd.py:384
|
|
if skip_msg is None:
|
|
skip_msg = "skipping %s (inputs unchanged)" % outfile
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/cmd.py:394
|
|
if exec_msg is None:
|
|
exec_msg = "generating %s from %s" % (outfile, ', '.join(infiles))
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/sysconfig.py:97
|
|
if prefix is None:
|
|
prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/sysconfig.py:292
|
|
if g is None:
|
|
g = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/sysconfig.py:330
|
|
if g is None:
|
|
g = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/distutils/spawn.py:178
|
|
if path is None:
|
|
path = os.environ['PATH']
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shlex.py:256
|
|
if infile is None:
|
|
infile = self.infile
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/shlex.py:258
|
|
if lineno is None:
|
|
lineno = self.lineno
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/csv.py:200
|
|
dialect.quotechar = quotechar or '"'
|
|
|
|
[Possible] None-coalescing `or`: /usr/lib/python3.4/lib2to3/refactor.py:191
|
|
self.explicit = explicit or []
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/lib2to3/pgen2/driver.py:33
|
|
if logger is None:
|
|
logger = logging.getLogger()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/lib2to3/pgen2/driver.py:112
|
|
if logger is None:
|
|
logger = logging.getLogger()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/lib2to3/pgen2/pgen.py:165
|
|
if startsymbol is None:
|
|
startsymbol = name
|
|
|
|
Safe navigation `if` block: /usr/lib/python3.4/lib2to3/pgen2/pgen.py:22
|
|
if close_stream is not None:
|
|
close_stream()
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/lib2to3/pgen2/parse.py:102
|
|
if start is None:
|
|
start = self.grammar.start
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/lib2to3/fixes/fix_tuple_params.py:158
|
|
if d is None:
|
|
d = {}
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/ipaddress.py:1718
|
|
if ip_int is None:
|
|
ip_int = int(self._ip)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bisect.py:14
|
|
if hi is None:
|
|
hi = len(a)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bisect.py:37
|
|
if hi is None:
|
|
hi = len(a)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bisect.py:58
|
|
if hi is None:
|
|
hi = len(a)
|
|
|
|
None-coalescing `if` block: /usr/lib/python3.4/bisect.py:80
|
|
if hi is None:
|
|
hi = len(a)
|
|
|
|
Total None-coalescing `if` blocks: 426
|
|
Total [possible] None-coalescing `or`: 119
|
|
Total None-coalescing ternaries: 21
|
|
Total Safe navigation `and`: 9
|
|
Total Safe navigation `if` blocks: 55
|
|
Total Safe navigation ternaries: 7
|