def get_location(self, config):
if self.nodeid:<EOL><INDENT>return self.nodeid<EOL><DEDENT>if self.fslocation:<EOL><INDENT>if isinstance(self.fslocation, tuple) and len(self.fslocation) >= <NUM_LIT:2>:<EOL><INDENT>filename, linenum = self.fslocation[:<NUM_LIT:2>]<EOL>relpath = py.path.local(filename).relto(config.invocation_dir)<EOL>if not relpath:<EOL><INDENT>relpath = str(filename)<EOL><DEDENT>return "<STR_LIT>" % (relpath, linenum)<EOL><DEDENT>else:<EOL><INDENT>return str(self.fslocation)<EOL><DEDENT><DEDENT>return None<EOL>
Returns the more user-friendly information about the location
of a warning, or None.