scripts: Tweaked openio comment
Dang, this touched like every single script.
This commit is contained in:
+1
-1
@@ -44,8 +44,8 @@ VALGRIND_PATH = ['valgrind']
|
|||||||
PERF_SCRIPT = ['./scripts/perf.py']
|
PERF_SCRIPT = ['./scripts/perf.py']
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ import tempfile
|
|||||||
GIT_PATH = ['git']
|
GIT_PATH = ['git']
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -155,8 +155,8 @@ class CodeResult(co.namedtuple('CodeResult', [
|
|||||||
self.size + other.size)
|
self.size + other.size)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -50,8 +50,8 @@ STACK_PATH = ['./scripts/stack.py']
|
|||||||
CTX_PATH = ['./scripts/ctx.py']
|
CTX_PATH = ['./scripts/ctx.py']
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
@@ -59,8 +59,8 @@ STACK_PATH = ['./scripts/stack.py']
|
|||||||
CTX_PATH = ['./scripts/ctx.py']
|
CTX_PATH = ['./scripts/ctx.py']
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -267,8 +267,8 @@ class CovResult(co.namedtuple('CovResult', [
|
|||||||
self.branches + other.branches)
|
self.branches + other.branches)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -15,8 +15,8 @@ except ModuleNotFoundError:
|
|||||||
crc32c_lib = None
|
crc32c_lib = None
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -1336,8 +1336,8 @@ def punescape_help():
|
|||||||
'%(field)[fFeEgG]', 'An existing field formatted as a float'))
|
'%(field)[fFeEgG]', 'An existing field formatted as a float'))
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -160,8 +160,8 @@ class CtxResult(co.namedtuple('CtxResult', [
|
|||||||
self.notes | other.notes)
|
self.notes | other.notes)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -155,8 +155,8 @@ class DataResult(co.namedtuple('DataResult', [
|
|||||||
self.size + other.size)
|
self.size + other.size)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
@@ -124,8 +124,8 @@ FONT = ['sans-serif']
|
|||||||
FONT_SIZE = 10
|
FONT_SIZE = 10
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -65,8 +65,8 @@ CHARS_BRAILLE = (
|
|||||||
'⠋⢋⡋⣋⠫⢫⡫⣫⠏⢏⡏⣏⠯⢯⡯⣯' '⠛⢛⡛⣛⠻⢻⡻⣻⠟⢟⡟⣟⠿⢿⡿⣿')
|
'⠋⢋⡋⣋⠫⢫⡫⣫⠏⢏⡏⣏⠯⢯⡯⣯' '⠛⢛⡛⣛⠻⢻⡻⣻⠟⢟⡟⣟⠿⢿⡿⣿')
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -17,8 +17,8 @@ except ModuleNotFoundError:
|
|||||||
crc32c_lib = None
|
crc32c_lib = None
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -180,8 +180,8 @@ class PerfResult(co.namedtuple('PerfResult', [
|
|||||||
self.children + other.children)
|
self.children + other.children)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -164,8 +164,8 @@ class PerfBdResult(co.namedtuple('PerfBdResult', [
|
|||||||
self.children + other.children)
|
self.children + other.children)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -132,8 +132,8 @@ def si2(x, w=5):
|
|||||||
s = s.rstrip('.')
|
s = s.rstrip('.')
|
||||||
return '%s%s%s' % ('-' if x < 0 else '', s, SI2_PREFIXES[p])
|
return '%s%s%s' % ('-' if x < 0 else '', s, SI2_PREFIXES[p])
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -158,8 +158,8 @@ class AutoMultipleLocator(mpl.ticker.MultipleLocator):
|
|||||||
return super().__call__()
|
return super().__call__()
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
@@ -78,8 +78,8 @@ L.lex('STUFF', '[^;{}?:,()"\'=!<>\-&|/#]+',
|
|||||||
'/(?!/)', '/(?!\*)')
|
'/(?!/)', '/(?!\*)')
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -160,8 +160,8 @@ class StackResult(co.namedtuple('StackResult', [
|
|||||||
self.notes | other.notes)
|
self.notes | other.notes)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -158,8 +158,8 @@ class StructResult(co.namedtuple('StructResult', [
|
|||||||
self.children + other.children)
|
self.children + other.children)
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -23,8 +23,8 @@ import threading as th
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -19,8 +19,8 @@ import time
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -45,8 +45,8 @@ VALGRIND_PATH = ['valgrind']
|
|||||||
PERF_SCRIPT = ['./scripts/perf.py']
|
PERF_SCRIPT = ['./scripts/perf.py']
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -42,8 +42,8 @@ CHARS_BRAILLE = (
|
|||||||
'⠋⢋⡋⣋⠫⢫⡫⣫⠏⢏⡏⣏⠯⢯⡯⣯' '⠛⢛⡛⣛⠻⢻⡻⣻⠟⢟⡟⣟⠿⢿⡿⣿')
|
'⠋⢋⡋⣋⠫⢫⡫⣫⠏⢏⡏⣏⠯⢯⡯⣯' '⠛⢛⡛⣛⠻⢻⡻⣻⠟⢟⡟⣟⠿⢿⡿⣿')
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ FONT = ['sans-serif']
|
|||||||
FONT_SIZE = 10
|
FONT_SIZE = 10
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
+1
-1
@@ -34,8 +34,8 @@ except ModuleNotFoundError:
|
|||||||
inotify_simple = None
|
inotify_simple = None
|
||||||
|
|
||||||
|
|
||||||
|
# open with '-' for stdin/stdout
|
||||||
def openio(path, mode='r', buffering=-1):
|
def openio(path, mode='r', buffering=-1):
|
||||||
# allow '-' for stdin/stdout
|
|
||||||
import os
|
import os
|
||||||
if path == '-':
|
if path == '-':
|
||||||
if 'r' in mode:
|
if 'r' in mode:
|
||||||
|
|||||||
Reference in New Issue
Block a user