Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pythonprop/templates/area_userdefined.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_params(self):

def load(self):
if not self.area_templates_file: return -1
re_tag_name = re.compile('\[(.*)\]')
re_tag_name = re.compile(r'\[(.*)\]')
fd = None
try:
fd = open(os.path.expandvars(self.area_templates_file))
Expand Down
2 changes: 1 addition & 1 deletion src/pythonprop/voaAntennaChooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(self):
testLine = f.readline()
f.close()
if (testLine.find("parameters") == 9):
antenna_description = re.sub('\s+', ' ', antenna_description)
antenna_description = re.sub(r'\s+', ' ', antenna_description)
antenna_file = os.path.relpath(antenna_file, self.antenna_path)
if len(antenna_file) > 21:
err_msg_body = "The file path ('{:s}')\nis too long and should be less than 21 characters.\n\nPlease rename the antenna file.".format(antenna_file)
Expand Down
2 changes: 1 addition & 1 deletion src/pythonprop/voaSiteChooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(self, location=HamLocation(), map_size=(), itshfbc_path = '', paren
#sm.set_select_function(self.geo_tv_selected, False) # todo pygobject check this (it's just a guess)
sm.connect("changed", self.geo_tv_selected)

self.alpha_numeric_re = re.compile('[\W_]+')
self.alpha_numeric_re = re.compile(r'[\W_]+')
self.latitude_column = 0
self.longitude_column = 0

Expand Down
4 changes: 2 additions & 2 deletions src/pythonprop/voacapgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class VOACAP_GUI():
# Determine where the itshfbc and prefs files are, based on OS
# The windows paths are guesses and need checking....
if os.name == 'nt':
itshfbc_path = 'C:\itshfbc'
prefs_dir = 'C:\itshfbc\database\\'
itshfbc_path = r'C:\itshfbc'
prefs_dir = r'C:\itshfbc\database' + '\\'
else:
itshfbc_path = os.path.expanduser("~")+os.sep+'itshfbc'
prefs_dir = os.path.expanduser("~")+os.sep+'.voacapgui'+os.sep
Expand Down