Browse Source

rollback to RawConfigParser

pull/34/head
Romain Kerguelen 5 years ago
parent
commit
22356f31cc
Signed by untrusted user: rigelk GPG Key ID: EA12971B0E438F36
3 changed files with 5 additions and 12 deletions
  1. +1
    -5
      prismedia/pt_upload.py
  2. +1
    -1
      prismedia/upload.py
  3. +3
    -6
      prismedia/utils.py

+ 1
- 5
prismedia/pt_upload.py View File

@ -16,12 +16,8 @@ from requests_toolbelt.multipart.encoder import MultipartEncoder
from . import utils
from six.moves import configparser
import six
if six.PY2:
ConfigParser = configparser.SafeConfigParser
else:
ConfigParser = configparser.ConfigParser
ConfigParser = configparser.RawConfigParser
PEERTUBE_SECRETS_FILE = 'peertube_secret'
PEERTUBE_PRIVACY = {

+ 1
- 1
prismedia/upload.py View File

@ -87,7 +87,7 @@ except ImportError:
'see https://github.com/ahupp/python-magic\n')
exit(1)
VERSION = "prismedia v0.6.1-1"
VERSION = "prismedia v0.6.2"
VALID_PRIVACY_STATUSES = ('public', 'private', 'unlisted')
VALID_CATEGORIES = (

+ 3
- 6
prismedia/utils.py View File

@ -1,3 +1,4 @@
#!/usr/bin/python
# coding: utf-8
from ConfigParser import RawConfigParser, NoOptionError, NoSectionError
@ -8,14 +9,10 @@ from subprocess import check_call, CalledProcessError, STDOUT
import unidecode
import logging
from six.moves import configparser
import six
if six.PY2:
ConfigParser = configparser.SafeConfigParser
else:
ConfigParser = configparser.ConfigParser
ConfigParser = configparser.RawConfigParser
### CATEGORIES ###
# CATEGORIES #
YOUTUBE_CATEGORY = {
"music": 10,
"films": 1,

Loading…
Cancel
Save