File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 233
233
# Additional stuff for the LaTeX preamble.
234
234
#'preamble': '',
235
235
# Include 3 levels of headers in PDF ToC
236
- 'preamble' : '\setcounter{tocdepth}{2}' ,
236
+ 'preamble' : r '\setcounter{tocdepth}{2}' ,
237
237
}
238
238
239
239
# Grouping the document tree into LaTeX files. List of tuples
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
- """
3
+ r """
4
4
Flash the WiPy (format, update service pack and program).
5
5
6
6
Example:
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def parse_usb_ids(filename):
16
16
rv = dict ()
17
17
for line in open (filename ).readlines ():
18
18
line = line .rstrip ("\r \n " )
19
- match = re .match ("^#define\s+(\w+)\s+\(0x([0-9A-Fa-f]+)\)$" , line )
19
+ match = re .match (r "^#define\s+(\w+)\s+\(0x([0-9A-Fa-f]+)\)$" , line )
20
20
if match and match .group (1 ).startswith (config_prefix ):
21
21
key = match .group (1 ).replace (config_prefix , "USB_" )
22
22
val = match .group (2 )
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ def get_drives():
271
271
]
272
272
)
273
273
for line in to_str (r ).split ("\n " ):
274
- words = re .split ("\s+" , line )
274
+ words = re .split (r "\s+" , line )
275
275
if len (words ) >= 3 and words [1 ] == "2" and words [2 ] == "FAT" :
276
276
drives .append (words [0 ])
277
277
else :
You can’t perform that action at this time.
0 commit comments