GNUnet
0.20.0
removetrailingwhitespace.py
Go to the documentation of this file.
1
#!/home/buildbot/bb-worker/sandbox/bin/python
2
3
import
sys
4
import
re
5
6
for
fileName
in
sys.argv[1:]:
7
f = open(fileName,
'r+'
)
8
fileString = f.read()
9
10
fileString = re.sub(
r'[ ]+\n'
,
r'\n'
, fileString)
11
fileString = re.sub(
r'\r'
,
r''
, fileString)
12
f.seek(0)
13
f.write(fileString)
14
f.truncate(
len
(fileString))
len
uint16_t len
length of data (which is always a uint32_t, but presumably this can be used to specify that fewer byt...
Definition:
gnunet-helper-transport-wlan.c:16
contrib
scripts
removetrailingwhitespace.py
Generated by
1.9.1