Skip to content

Commit

Permalink
Some pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellRanda committed Nov 13, 2023
1 parent aa0b895 commit d1f3fe9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions powerprice.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

from datetime import date, timedelta, datetime
import sys, os
import sys
import os
import time
import configparser
from io import StringIO, BytesIO
import re
import requests
import lxml.etree as ET
import re

xslt='''<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no"/>
Expand Down Expand Up @@ -52,9 +53,8 @@ def getEntsoePrice(area, apikey):
response = requests.get(url, timeout=60)
if response.status_code == 200:
return response.text.encode('UTF-8')
else:
print("Error getting data from Entsso-E. Reurn code = ", response.status_code)
sys.exit(3)
print("Error getting data from Entsso-E. Reurn code = ", response.status_code)
sys.exit(3)

def parseXML(xml, xslt):
rlist = []
Expand Down Expand Up @@ -106,7 +106,7 @@ def parseArgs(argv):
if len(argv) >= 1:
arg = argv[0].upper()
return arg

def getConfig():
home = os.path.expanduser("~")
inifile = home + "/.entsoe.ini"
Expand Down

0 comments on commit d1f3fe9

Please sign in to comment.