From 011cf4e7093d0f6185684dae9c53ce9aa7c20592 Mon Sep 17 00:00:00 2001 From: Mohamed Taher Alrefaie Date: Wed, 11 Mar 2020 11:28:18 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cda02bd..5f38cbe 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The starting points are the [Track](../master/tracktotrip/track.py), [Segment](. Can be loaded from a GPX file: -````python +```python from tracktotrip import Track, Segment, Point track = Track.from_gpx(open('file_to_track.gpx', 'r')) @@ -54,7 +54,7 @@ A track is composed by ` Segment `s, and each segment by ` Point `s. It can be saved to a GPX file: -````python +```python with open('file.gpx', 'w') as f: f.write(track.to_gpx()) ```