[Git][reproducible-builds/reproducible-website][master] Wrap the SOURCE_DATE_EPOCH Python examples onto another line.

Chris Lamb gitlab at salsa.debian.org
Mon May 11 14:31:29 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
d376d14c by Chris Lamb at 2020-05-11T15:31:13+01:00
Wrap the SOURCE_DATE_EPOCH Python examples onto another line.

- - - - -


1 changed file:

- _docs/source-date-epoch.md


Changes:

=====================================
_docs/source-date-epoch.md
=====================================
@@ -84,7 +84,9 @@ import os
 import time
 import datetime
 
-build_date = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
+build_date = datetime.datetime.utcfromtimestamp(
+    int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
+)
 ```
 
 or with less imports, rendering to a string:
@@ -92,7 +94,10 @@ or with less imports, rendering to a string:
 ```
 import os
 import time
-date_str = time.strftime("%Y-%m-%d", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
+date_str = time.strftime(
+    "%Y-%m-%d",
+    time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
+)
 ```
 
 ### Bash / POSIX shell



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/d376d14cf21f06e8503bfa5d75c3f1b36329fc2e

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/d376d14cf21f06e8503bfa5d75c3f1b36329fc2e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200511/d169952f/attachment.htm>


More information about the rb-commits mailing list