☰
Debian Codegraph
@
1.2.5+dfsg1-2
/
/
format_regex.py
☽
☼
format_regex.py
code
plain
raw
symbols
SCIP
Apache-2
(c) 2011-2015, Andre Malo
debian/copyright
1
#!/usr/bin/env python
2
from
__future__
import
print_function
3
4
import
sys
5
6
a = sys.
argv
[
1
]
7
8
while
len
(a) >
62
:
9
b, a = a[:
62
], a[
62
:]
10
while
b.
endswith
(
"
\\
"
):
11
b = b[:-
1
]
12
a =
"
\\
"
+ a
13
print
(
"r'%s'"
% (b,))
14
print
(
"r'%s'"
% (a,))