diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,10 @@ try: proc = subprocess.Popen(['git', 'describe', '--tags', '--long'], stdout=subprocess.PIPE) except OSError: + if not os.path.exists('version.txt'): + print "git-de...
Clarifying some setup.py error cases.
py
diff --git a/pods/google.py b/pods/google.py index <HASH>..<HASH> 100644 --- a/pods/google.py +++ b/pods/google.py @@ -7,6 +7,7 @@ import urlparse import os from config import * import numpy as np +import atom import pods.notebook as nb @@ -81,15 +82,16 @@ if gdata_available: if worksheet_name == s...
Added functionality to google.py
py
diff --git a/tests/providers/amazon/aws/operators/test_lambda.py b/tests/providers/amazon/aws/operators/test_lambda.py index <HASH>..<HASH> 100644 --- a/tests/providers/amazon/aws/operators/test_lambda.py +++ b/tests/providers/amazon/aws/operators/test_lambda.py @@ -21,6 +21,7 @@ import json import unittest import zi...
Add longer timeout for execution for flaky lambda invoke test
py
diff --git a/leaflet_storage/views.py b/leaflet_storage/views.py index <HASH>..<HASH> 100644 --- a/leaflet_storage/views.py +++ b/leaflet_storage/views.py @@ -522,8 +522,9 @@ class MapAnonymousEditUrl(RedirectView): map_inst = get_object_or_404(Map, pk=pk) url = map_inst.get_absolute_url() ...
Do not set cookie if map already has a owner Note: the cookie was useless for any edit action, but not setting it is cleaner
py
diff --git a/grimoire_elk/enriched/mattermost.py b/grimoire_elk/enriched/mattermost.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/mattermost.py +++ b/grimoire_elk/enriched/mattermost.py @@ -95,7 +95,8 @@ class MattermostEnrich(Enrich): identity['name'] = composed_name if composed_name else N...
[enrich_mattermost] Fix error setting empty emails for identities Mattermost enricher assigns empty string values when the email of an identity is no available. This patch replaces this value by None.
py
diff --git a/relationships/models.py b/relationships/models.py index <HASH>..<HASH> 100644 --- a/relationships/models.py +++ b/relationships/models.py @@ -54,6 +54,7 @@ class Relationship(models.Model): related_name='to_users', verbose_name=_('to user')) status = models.ForeignKey(RelationshipStatus, verb...
Adding a weight column to the relationship model
py
diff --git a/invewrapper/invewrapper.py b/invewrapper/invewrapper.py index <HASH>..<HASH> 100644 --- a/invewrapper/invewrapper.py +++ b/invewrapper/invewrapper.py @@ -110,6 +110,16 @@ def get_inve(env): return os.path.join(workon_home, env, env_bin_dir, 'inve') +def get_project_dir(env): + project_dir = None +...
Check if the virtualenv has a project directory.
py
diff --git a/textx/export.py b/textx/export.py index <HASH>..<HASH> 100644 --- a/textx/export.py +++ b/textx/export.py @@ -8,7 +8,7 @@ ####################################################################### from __future__ import unicode_literals from arpeggio import Match, OrderedChoice, Sequence, OneOrMore, ZeroOr...
Fix in the export for syntactic predicates.
py
diff --git a/salt/modules/linux_sysctl.py b/salt/modules/linux_sysctl.py index <HASH>..<HASH> 100644 --- a/salt/modules/linux_sysctl.py +++ b/salt/modules/linux_sysctl.py @@ -129,7 +129,10 @@ def assign(name, value): tran_tab = name.translate(''.maketrans('./', '/.')) else: if isinstance(name, un...
Bugfix setting sysctl keys with '/' in it
py
diff --git a/gitlab/objects.py b/gitlab/objects.py index <HASH>..<HASH> 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -935,7 +935,6 @@ class ProjectHookManager(BaseManager): class ProjectIssueNote(GitlabObject): _url = '/projects/%(project_id)s/issues/%(issue_id)s/notes' _constructorTypes = {'aut...
Remove unnecessary canUpdate property from ProjectIssuesNote
py
diff --git a/src/ossos-pipeline/ossos/gui/controllers.py b/src/ossos-pipeline/ossos/gui/controllers.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/gui/controllers.py +++ b/src/ossos-pipeline/ossos/gui/controllers.py @@ -195,6 +195,7 @@ class ProcessRealsController(AbstractController): values = r...
pass the key stoke on accept to the mpc file.
py
diff --git a/robobrowser/forms/fields.py b/robobrowser/forms/fields.py index <HASH>..<HASH> 100644 --- a/robobrowser/forms/fields.py +++ b/robobrowser/forms/fields.py @@ -240,7 +240,7 @@ class Select(NestedOptionField, MultiOptionField): """ super(Select, self)._set_initial(initial) - if not ...
Added a fix for paring empty select boxes
py
diff --git a/flask_peewee/auth.py b/flask_peewee/auth.py index <HASH>..<HASH> 100644 --- a/flask_peewee/auth.py +++ b/flask_peewee/auth.py @@ -151,7 +151,7 @@ class Auth(object): g.user = user flash('You are logged in as %s' % user, 'success') - def logout_user(self, user): + def logout_user(s...
Update auth.py logout_user(self) shouldn't have a "user" parameter. It's not even used in the function. When we call it (line <I>) it shouldn't be passed as a parameter.
py
diff --git a/kitnirc/contrib/commands.py b/kitnirc/contrib/commands.py index <HASH>..<HASH> 100644 --- a/kitnirc/contrib/commands.py +++ b/kitnirc/contrib/commands.py @@ -38,7 +38,7 @@ class CommandsModule(Module): COMMANDS n/a * command args... """ - + prefixes = set() def s...
Add missing attribute prefixes This attribute was missing, so it would sometimes break. It works now!
py
diff --git a/netmiko/__init__.py b/netmiko/__init__.py index <HASH>..<HASH> 100644 --- a/netmiko/__init__.py +++ b/netmiko/__init__.py @@ -23,7 +23,7 @@ NetmikoTimeoutError = NetMikoTimeoutException NetmikoAuthError = NetMikoAuthenticationException Netmiko = ConnectHandler -__version__ = "2.4.1" +__version__ = "2.4...
Rolling version to <I>
py
diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py index <HASH>..<HASH> 100644 --- a/tornado/test/runtests.py +++ b/tornado/test/runtests.py @@ -150,6 +150,16 @@ def main(): warnings.filterwarnings( "ignore", category=ResourceWarning, module=r"asyncio\..*" ) + # This depr...
test: Silence a deprecation warning in py<I>+pycurl
py
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -303,7 +303,7 @@ class EventBasedCalculator(base.HazardCalculator): E = getattr(self, 'E', 0) # 0 for no...
Removed the site limit in event_based [skip CI] Former-commit-id: aad5cefcfadec<I>dd6cb5c<I>eed<I>a<I>c9e
py
diff --git a/procmem/main_write.py b/procmem/main_write.py index <HASH>..<HASH> 100644 --- a/procmem/main_write.py +++ b/procmem/main_write.py @@ -15,8 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -import os - +from procmem.memory import Memory from procmem.pack import text2byt...
Use Memory class in 'procmem write'
py
diff --git a/gbdxtools/images/catalog_image.py b/gbdxtools/images/catalog_image.py index <HASH>..<HASH> 100644 --- a/gbdxtools/images/catalog_image.py +++ b/gbdxtools/images/catalog_image.py @@ -17,7 +17,6 @@ class CatalogImage(object): from_proj (str): Optional projection string to define the coordinate syste...
drop `bands=[]` arg since it's wrong
py
diff --git a/targqc/config.py b/targqc/config.py index <HASH>..<HASH> 100644 --- a/targqc/config.py +++ b/targqc/config.py @@ -4,7 +4,7 @@ code_base_path = abspath(join(dirname(abspath(__file__)), pardir)) # Defaults (can be altered here or via command line arguments): padding = 200 -depth_thresholds = [1, 5, 10, 2...
Add <I> and <I> to depth_thresholds
py
diff --git a/version.py b/version.py index <HASH>..<HASH> 100755 --- a/version.py +++ b/version.py @@ -1,2 +1,2 @@ #/usr/bin/env python -VERSION = '1.4.0-s1893' +VERSION = '1.4.0-s1898'
Ready for release <I>s<I>
py
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index <HASH>..<HASH> 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -362,7 +362,7 @@ class GroupMember(GitlabObject): requiredCreateAttrs = ['access_level', 'user_id'] optionalCreateAttrs = ['expires_at'] requiredUpdateAttrs = ['ac...
Missing expires_at in GroupMembers update CreateAttrs was set twice in GroupMember due to possible copy-paste error.
py
diff --git a/tests/iframes.py b/tests/iframes.py index <HASH>..<HASH> 100644 --- a/tests/iframes.py +++ b/tests/iframes.py @@ -1,5 +1,6 @@ from nose.tools import assert_equals + class IFrameElementsTest(object): def test_can_work_on_iframes(self):
fixed pep8 issues in test/iframes.py
py
diff --git a/python/test/annotators.py b/python/test/annotators.py index <HASH>..<HASH> 100644 --- a/python/test/annotators.py +++ b/python/test/annotators.py @@ -210,7 +210,9 @@ class DateMatcherTestSpec(unittest.TestCase): date_matcher = DateMatcher() \ .setInputCols(['document']) \ ...
Added source language param in date matcher multi lang test
py
diff --git a/ai/backend/client/exceptions.py b/ai/backend/client/exceptions.py index <HASH>..<HASH> 100644 --- a/ai/backend/client/exceptions.py +++ b/ai/backend/client/exceptions.py @@ -10,7 +10,9 @@ __all__ = ( class BackendError(BaseException): '''Exception type to catch all ai.backend-related errors.''' - ...
exceptions: Make string-repr same to repr in exception classes.
py
diff --git a/tincan/http_request.py b/tincan/http_request.py index <HASH>..<HASH> 100644 --- a/tincan/http_request.py +++ b/tincan/http_request.py @@ -18,8 +18,6 @@ from tincan.base import Base class HTTPRequest(Base): """Creates a new HTTPRequest object, either from a dict, another object, or from kwargs - ...
small doc string fix to http request
py
diff --git a/python/splearn/feature_extraction/dict_vectorizer.py b/python/splearn/feature_extraction/dict_vectorizer.py index <HASH>..<HASH> 100644 --- a/python/splearn/feature_extraction/dict_vectorizer.py +++ b/python/splearn/feature_extraction/dict_vectorizer.py @@ -67,7 +67,7 @@ class DictVectorizer(object): ...
Added python distributed dict_vectorizer.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('requirements.txt') as f: setup( name='pyicloud', - version='0.7.1', + version='0.7.2', url='https://github.com/picklepete/pyicloud', description=( 'PyiCloud is a module ...
Release <I>; Validate certificate (and thus remove certificate validation warning).
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -790,7 +790,7 @@ class ElementPlot(BokehPlot, GenericElementPlot): for ax in 'xy': key = '%s_r...
Avoid erroring if no axes in bokeh plot handles
py
diff --git a/pysensu/api.py b/pysensu/api.py index <HASH>..<HASH> 100644 --- a/pysensu/api.py +++ b/pysensu/api.py @@ -188,3 +188,39 @@ class SensuAPI(object): """ self._request('DELETE', '/stashes/{}'.format(path)) return True + + """ + Subscriptions ops (non on the API) + """ + ...
Add methods for get subscriptions and clients subscribed to an specific channel
py
diff --git a/cloudvolume/datasource/precomputed/image/__init__.py b/cloudvolume/datasource/precomputed/image/__init__.py index <HASH>..<HASH> 100644 --- a/cloudvolume/datasource/precomputed/image/__init__.py +++ b/cloudvolume/datasource/precomputed/image/__init__.py @@ -97,7 +97,7 @@ class PrecomputedImageSource(ImageS...
fix: make image.has_data as efficient as it was intended
py
diff --git a/datalab/utils/commands/_utils.py b/datalab/utils/commands/_utils.py index <HASH>..<HASH> 100644 --- a/datalab/utils/commands/_utils.py +++ b/datalab/utils/commands/_utils.py @@ -113,7 +113,7 @@ def _get_cols(fields, schema): for col in fields: if schema: f = schema[col] - t = typemap.ge...
Resolve issue where repeated field may not display properly in Google Chart (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,12 @@ def do_setup(cython=False): if os.environ['USE_CYTHON'] == "false": cython = False if cython: + print("Installing with cython\n") from Cython.Build import cythonize ...
* cython support and travis tests
py
diff --git a/salt/modules/gnomedesktop.py b/salt/modules/gnomedesktop.py index <HASH>..<HASH> 100644 --- a/salt/modules/gnomedesktop.py +++ b/salt/modules/gnomedesktop.py @@ -13,6 +13,9 @@ try: except ImportError: HAS_PWD = False +# Import Salt libs +import salt.utils.path + # Import 3rd-party libs try: ...
Update old utils paths to new utils paths
py
diff --git a/src/audio_metadata/formats/ogg.py b/src/audio_metadata/formats/ogg.py index <HASH>..<HASH> 100644 --- a/src/audio_metadata/formats/ogg.py +++ b/src/audio_metadata/formats/ogg.py @@ -155,7 +155,7 @@ class Ogg(Format): except ValueError: raise Exception # TODO - self._obj.seek(-index, os.SEEK_END)...
Use correct index when seeking to last Ogg Page
py
diff --git a/serializer.py b/serializer.py index <HASH>..<HASH> 100644 --- a/serializer.py +++ b/serializer.py @@ -3,6 +3,6 @@ from rest_framework import serializers class SearchSerializer(serializers.Serializer): listf = ('id', 'create_date', 'last_modified') - order_by = serializers.ListField(child=seriali...
Default sorting field updated Changed `default` value of `sort_by` to `id` from `create_date` as some model may not have `create_date` but `id` is compulsory and generally will provide same output.
py
diff --git a/storm/__init__.py b/storm/__init__.py index <HASH>..<HASH> 100644 --- a/storm/__init__.py +++ b/storm/__init__.py @@ -60,10 +60,12 @@ class Storm(object): # required for the web api. if only_servers: + new_config_data = [] for index, value in enumerate(config_dat...
don't delete an item while iterating over the list. related: #<I>
py
diff --git a/tests/test_player.py b/tests/test_player.py index <HASH>..<HASH> 100644 --- a/tests/test_player.py +++ b/tests/test_player.py @@ -180,6 +180,7 @@ def test_get_metadata_use_library_image_as_art_url(backend, core, player): "dummy:a": [ Image(uri="http://example.com/small.jpg", width=100...
Extend test_get_metadata_use_library_image_as_art_url() with image without size attributes Add an image without width/height attributes to the test_get_metadata_use_library_image_as_art_url() testcase, as such entries are generated by mopidy-youtube (and valid according to the mopidy.models.Image docs).
py
diff --git a/zappa/cli.py b/zappa/cli.py index <HASH>..<HASH> 100644 --- a/zappa/cli.py +++ b/zappa/cli.py @@ -314,6 +314,7 @@ class ZappaCLI(object): help=("Don't color the output") ) # This is explicitly added here because this is the only subcommand that doesn't inherit from env_parser...
Added a comment link to issue
py
diff --git a/annotationengine/__init__.py b/annotationengine/__init__.py index <HASH>..<HASH> 100644 --- a/annotationengine/__init__.py +++ b/annotationengine/__init__.py @@ -1,6 +1,7 @@ from flask import Flask, jsonify, url_for, redirect, Blueprint import json import numpy as np +from emannotationschemas.models imp...
Register blueprint; init db on app startup
py
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py index <HASH>..<HASH> 100644 --- a/pyzotero/zotero.py +++ b/pyzotero/zotero.py @@ -164,7 +164,7 @@ class Zotero(object): query = '%s?%s' % (query, self.url_params) return query - # The following methods are all Zotero Read API calls + # The f...
Marking each 'group' of API methods
py
diff --git a/cmsplugin_cascade/bootstrap3/panel.py b/cmsplugin_cascade/bootstrap3/panel.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/bootstrap3/panel.py +++ b/cmsplugin_cascade/bootstrap3/panel.py @@ -18,7 +18,7 @@ from cmsplugin_cascade.fields import GlossaryField from cmsplugin_cascade.plugin_base import T...
use lists, not tuples
py
diff --git a/statsdmetrics/client/__init__.py b/statsdmetrics/client/__init__.py index <HASH>..<HASH> 100644 --- a/statsdmetrics/client/__init__.py +++ b/statsdmetrics/client/__init__.py @@ -82,12 +82,12 @@ class AbstractClient(object): def __init__(self, host, port=DEFAULT_PORT, prefix=''): self._port ...
Fix incorrect order of defining instance attrs in Abstract client First define the attrs (host, port) used by other attrs (remote_addr, socket)
py
diff --git a/aioasuswrt/connection.py b/aioasuswrt/connection.py index <HASH>..<HASH> 100644 --- a/aioasuswrt/connection.py +++ b/aioasuswrt/connection.py @@ -96,6 +96,8 @@ class TelnetConnection: """Run a command through a Telnet connection. If first_try is True a second attempt will be done if the f...
Fix deadlock while calling retry
py
diff --git a/scapy/contrib/gtp.py b/scapy/contrib/gtp.py index <HASH>..<HASH> 100644 --- a/scapy/contrib/gtp.py +++ b/scapy/contrib/gtp.py @@ -536,6 +536,12 @@ class IE_GSNAddress(IE_Base): ConditionalField(IP6Field("ipv6_address", '::1'), lambda pkt: pkt.length ...
GTP: calculate the length of the GSN Address IE
py
diff --git a/datapackage_pipelines/lib/add_computed_field.py b/datapackage_pipelines/lib/add_computed_field.py index <HASH>..<HASH> 100644 --- a/datapackage_pipelines/lib/add_computed_field.py +++ b/datapackage_pipelines/lib/add_computed_field.py @@ -7,7 +7,7 @@ def flow(parameters): return Flow( add_comp...
Update function call of add_computed_field (#<I>)
py
diff --git a/openquake/hazardlib/calc/stochastic.py b/openquake/hazardlib/calc/stochastic.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/calc/stochastic.py +++ b/openquake/hazardlib/calc/stochastic.py @@ -199,7 +199,7 @@ def sample_cluster(sources, srcfilter, num_ses, param): # Store info ...
Fixed more tests [skip hazardlib]
py
diff --git a/blessings/__init__.py b/blessings/__init__.py index <HASH>..<HASH> 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -453,10 +453,12 @@ class NullCallableString(unicode): new = unicode.__new__(cls, u'') return new - def __call__(self, arg): - if isinstance(arg,...
Fix NullCallableString() when called with no or multiple arguments
py
diff --git a/tests/test_buku.py b/tests/test_buku.py index <HASH>..<HASH> 100644 --- a/tests/test_buku.py +++ b/tests/test_buku.py @@ -3,6 +3,7 @@ from itertools import product from unittest import mock from urllib.parse import urlparse import json +import logging import os import signal import sys @@ -726,7 +727...
chg: dev: only inform about popen for now
py
diff --git a/src/pytest/collect.py b/src/pytest/collect.py index <HASH>..<HASH> 100644 --- a/src/pytest/collect.py +++ b/src/pytest/collect.py @@ -1,6 +1,8 @@ import sys import warnings from types import ModuleType +from typing import Any +from typing import List import pytest from _pytest.deprecated import PYTE...
pytest.collect: type annotate (backward compat module) This is just to satisfy typing coverage.
py
diff --git a/salt/modules/puppet.py b/salt/modules/puppet.py index <HASH>..<HASH> 100644 --- a/salt/modules/puppet.py +++ b/salt/modules/puppet.py @@ -60,7 +60,7 @@ class _Puppet(object): self.args = [] # eg. --noop if salt.utils.is_windows(): - self.vardir = 'C:\\ProgramData\\Pup...
Correct mistake in Puppet VARDIR on Windows
py
diff --git a/emma2/util/log.py b/emma2/util/log.py index <HASH>..<HASH> 100644 --- a/emma2/util/log.py +++ b/emma2/util/log.py @@ -3,9 +3,8 @@ Created on 15.10.2013 @author: marscher ''' -# import log levels -from logging import DEBUG, INFO, WARN, ERROR, CRITICAL import logging +import os import emma2 as _emma2 ...
[util/log] write logfile to $CWD/emma2.log
py
diff --git a/fedmsg/tests/test_meta.py b/fedmsg/tests/test_meta.py index <HASH>..<HASH> 100644 --- a/fedmsg/tests/test_meta.py +++ b/fedmsg/tests/test_meta.py @@ -181,7 +181,6 @@ class Base(unittest.TestCase): print "Failed at:" print " ", self print " ", os.path.relpath(inspect.g...
Getting the source lines is error prone. No need.
py
diff --git a/tailhead/__init__.py b/tailhead/__init__.py index <HASH>..<HASH> 100644 --- a/tailhead/__init__.py +++ b/tailhead/__init__.py @@ -223,11 +223,17 @@ class Tailer(object): """ Return the top lines of the file. """ - self.file.seek(0) - for i in range(lines): - ...
Added same functionality as UNIX head command: with the leading '-', print all but the last NUM lines of each file
py
diff --git a/bcbio/broad/__init__.py b/bcbio/broad/__init__.py index <HASH>..<HASH> 100644 --- a/bcbio/broad/__init__.py +++ b/bcbio/broad/__init__.py @@ -141,6 +141,7 @@ def fix_missing_spark_user(cl, prog, params): https://blog.openshift.com/jupyter-on-openshift-part-6-running-as-an-assigned-user-id/ """ ...
Docker: avoid errors if can't create/find user for spark
py
diff --git a/msm/skill_entry.py b/msm/skill_entry.py index <HASH>..<HASH> 100644 --- a/msm/skill_entry.py +++ b/msm/skill_entry.py @@ -7,6 +7,7 @@ from contextlib import contextmanager import sys import os +from threading import Lock from git import Repo, GitError from git.cmd import Git @@ -38,6 +39,8 @@ def w...
Add lock to pip This is to see if it helps improve stability with installation across devices
py
diff --git a/scapy/fields.py b/scapy/fields.py index <HASH>..<HASH> 100644 --- a/scapy/fields.py +++ b/scapy/fields.py @@ -124,11 +124,23 @@ class Field(six.with_metaclass(Field_metaclass, object)): return repr(self.i2h(pkt, x)) def addfield(self, pkt, s, val): - """Add an internal value to a st...
Improve documentation for Field.addfield and Field.getfield Copied from doc/scapy/build_dissect.rst
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,6 +67,7 @@ github_repo_name = 'cheroot' github_repo_slug = f'{github_repo_org}/{github_repo_name}' github_repo_url = f'{github_url}/{github_repo_slug}' cp_github_repo_url = f'{github_url}/{github_repo_or...
Add a `:user:` role to Sphinx
py
diff --git a/stegano/tools.py b/stegano/tools.py index <HASH>..<HASH> 100755 --- a/stegano/tools.py +++ b/stegano/tools.py @@ -91,24 +91,12 @@ def binary2base64(binary_file): fin = open(binary_file, "rb") binary_data = fin.read() fin.close() - # Encode binary to base64 string (printable) return...
clean code related to tools.binary2base<I> and tools.base<I>binary functions.
py
diff --git a/siphon/cdmr/ncstream.py b/siphon/cdmr/ncstream.py index <HASH>..<HASH> 100644 --- a/siphon/cdmr/ncstream.py +++ b/siphon/cdmr/ncstream.py @@ -344,7 +344,7 @@ def unpack_variable(var): if var.data: log.debug('Storing variable data: %s %s', dt, var.data) - if var.dataType is str: + ...
Fix variable string data embedded in header. Can't find a testcase for this, but no way previous code is correct.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup(name='billboard.py', - version='1.0.4', + version='1.0.5', description='Unofficial Python API for accessing Billboard.com charts', author='Allen Guo',...
Update setup.py bump to <I>
py
diff --git a/src/python/pants/option/options.py b/src/python/pants/option/options.py index <HASH>..<HASH> 100644 --- a/src/python/pants/option/options.py +++ b/src/python/pants/option/options.py @@ -137,7 +137,7 @@ class Options(object): if self._legacy_values: values.update(vars(self._legacy_values)) ...
Fix a bug where all OptionValue objects had the same underlying forwardings. This wasn't seen earlier because in practice all tasks migrated so far had disjoint option names. This was exposed when I migrated two unrelated tasks that happened to have an identically named option (--skip). Testing Done: CI passed. Ver...
py
diff --git a/tests/test_asymetric.py b/tests/test_asymetric.py index <HASH>..<HASH> 100644 --- a/tests/test_asymetric.py +++ b/tests/test_asymetric.py @@ -55,18 +55,21 @@ class TestUtil(unittest.TestCase): # get the first private key with given KeyID privKey = self.session.findObjects([(PyKCS11.CKA_CL...
test_asymetric: split sign/verify from encrypt/decrypt
py
diff --git a/spacy/cli/train.py b/spacy/cli/train.py index <HASH>..<HASH> 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -441,7 +441,7 @@ def update_meta( training: Union[Dict[str, Any], Config], nlp: Language, info: Dict[str, Any] ) -> None: nlp.meta["performance"] = {} - for metric in train...
Fix score_weights typo in train CLI (#<I>)
py
diff --git a/torchvision/transforms/transforms.py b/torchvision/transforms/transforms.py index <HASH>..<HASH> 100644 --- a/torchvision/transforms/transforms.py +++ b/torchvision/transforms/transforms.py @@ -782,10 +782,11 @@ class LinearTransformation(object): subtract mean_vector from it which is then followed by...
Improve doc of Linear Transformation (#<I>)
py
diff --git a/burrito/util.py b/burrito/util.py index <HASH>..<HASH> 100644 --- a/burrito/util.py +++ b/burrito/util.py @@ -218,6 +218,8 @@ class CommandLineApplication(Application): else: working_dir = self._working_dir or getcwd() self.WorkingDir = FilePath(working_dir) + if not T...
MAINT: add trailing slash to temp dir
py
diff --git a/floodestimation/fehdata.py b/floodestimation/fehdata.py index <HASH>..<HASH> 100644 --- a/floodestimation/fehdata.py +++ b/floodestimation/fehdata.py @@ -130,6 +130,7 @@ def _update_nrfa_metadata(remote_config): config['nrfa']['url'] = remote_config['nrfa_url'] config.set_datetime('nrfa', 'publis...
also set `update_checked_on` when downloading without checking first
py
diff --git a/examples/full-event-client-example.py b/examples/full-event-client-example.py index <HASH>..<HASH> 100644 --- a/examples/full-event-client-example.py +++ b/examples/full-event-client-example.py @@ -16,7 +16,7 @@ Implement the API found here for code/token exchange: https://discord.com/developers/docs/topi...
Update full-event-client-example.py
py
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py index <HASH>..<HASH> 100644 --- a/Lib/fontmake/font_project.py +++ b/Lib/fontmake/font_project.py @@ -238,7 +238,7 @@ class FontProject: otf = otf_compiler( ufo, featureCompilerClass=fea_compiler, mti...
Don't assume glyphOrder is present in UFO sources
py
diff --git a/pyana/examples/gp_panel.py b/pyana/examples/gp_panel.py index <HASH>..<HASH> 100644 --- a/pyana/examples/gp_panel.py +++ b/pyana/examples/gp_panel.py @@ -24,7 +24,7 @@ def gp_panel(version): file_url = os.path.join(inDir, file) data_import = np.loadtxt(open(file_url, 'rb')) data_import = dat...
gp_panel: also set cocktail syserr 0
py
diff --git a/hotel/__manifest__.py b/hotel/__manifest__.py index <HASH>..<HASH> 100644 --- a/hotel/__manifest__.py +++ b/hotel/__manifest__.py @@ -8,17 +8,6 @@ Services Pvt. Ltd., Odoo S.A.', 'category': 'Generic Modules/Hotel Management', 'license': 'AGPL-3', - 'description': ''' - ...
[REM]Remove description tag in manifest file.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ setup( 'ginga.web', 'ginga.web.pgw', 'ginga.web.pgw.js', 'ginga.web.pgw.templates', # Common stuff - 'ginga.misc', 'ginga.misc.plugins', + ...
Added the misc.tests module to packages; modified test_suite
py
diff --git a/raiden/tests/utils/mediation_fees.py b/raiden/tests/utils/mediation_fees.py index <HASH>..<HASH> 100644 --- a/raiden/tests/utils/mediation_fees.py +++ b/raiden/tests/utils/mediation_fees.py @@ -36,10 +36,14 @@ def fee_sender( ) -> Optional[FeeAmount]: """Returns the mediation fee for this channel whe...
Fix imbalance fee calculation in routing helper
py
diff --git a/symbols/type_.py b/symbols/type_.py index <HASH>..<HASH> 100644 --- a/symbols/type_.py +++ b/symbols/type_.py @@ -237,6 +237,8 @@ class Type(object): fixed, float_, string] + _by_name = {x.name: x for x in types} + @staticmethod def size(t): assert isinst...
New method: Type.by_name(typename) Returns Type.xxx instance by its name.
py
diff --git a/foreman/client.py b/foreman/client.py index <HASH>..<HASH> 100644 --- a/foreman/client.py +++ b/foreman/client.py @@ -561,7 +561,7 @@ class Foreman(object): ) self.url = url self._req_params = {} - self.timeout = {'DEFAULT': timeout} + self.timeout = {'DEFAULT':...
Fixed timeout issue when passing 0 It seems that requests only accepts None as undefined timeout, so save None when 0 is passed
py
diff --git a/dclab/rtdc_dataset.py b/dclab/rtdc_dataset.py index <HASH>..<HASH> 100644 --- a/dclab/rtdc_dataset.py +++ b/dclab/rtdc_dataset.py @@ -72,7 +72,7 @@ class RTDC_DataSet(object): fsh = [ tdms_path, mx+"_camera.ini", mx+"_para.ini" ] self.file_hashes = [(f, hashfile(f)) for f in fsh if os.pat...
python3 tests with unicode hash
py
diff --git a/mapchete/formats/default/tile_directory.py b/mapchete/formats/default/tile_directory.py index <HASH>..<HASH> 100644 --- a/mapchete/formats/default/tile_directory.py +++ b/mapchete/formats/default/tile_directory.py @@ -230,14 +230,14 @@ class InputTile(base.InputTile): def read( self, + ...
let indexes be first kwarg to be consistent with other read() methods (#<I>)
py
diff --git a/satpy/tests/modifier_tests/test_parallax.py b/satpy/tests/modifier_tests/test_parallax.py index <HASH>..<HASH> 100644 --- a/satpy/tests/modifier_tests/test_parallax.py +++ b/satpy/tests/modifier_tests/test_parallax.py @@ -632,7 +632,8 @@ def test_parallax_modifier_interface_with_cloud(): @pytest.mark....
Perform test with different radii of influence The test with the cloud movement in the modifier interface fails either way, but it fails differently if the radius of influence is <I> km rather than <I> km. But for nearest neighbour it shouldn't matter?
py
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. -__version__ =...
Update Pyrogram to <I>
py
diff --git a/topydo/lib/Config.py b/topydo/lib/Config.py index <HASH>..<HASH> 100644 --- a/topydo/lib/Config.py +++ b/topydo/lib/Config.py @@ -108,10 +108,10 @@ class _Config: return self.defaults['highlight_projects_contexts'] == '1' def todotxt(self): - return self.cp.get('topydo', 'filenam...
added os.path.expanduser to filenames
py
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py index <HASH>..<HASH> 100644 --- a/satpy/readers/yaml_reader.py +++ b/satpy/readers/yaml_reader.py @@ -22,7 +22,6 @@ # New stuff -import copy import glob import itertools import logging @@ -738,11 +737,11 @@ class FileYAMLReader(AbstractYAM...
Raise ValueError instead of IOError when standard_name is missing in coordinates
py
diff --git a/turnstile/tools.py b/turnstile/tools.py index <HASH>..<HASH> 100644 --- a/turnstile/tools.py +++ b/turnstile/tools.py @@ -396,8 +396,8 @@ def parse_limit_node(db, idx, limit): return klass(db, **attrs) -@add_argument('config', - dest='conf_file', +@add_argument('conf_file', + ...
Fix config/conf_file issues in tools It turns out that 'dest' cannot be used with positional arguments. To allow for the configuration file to be specified with a 'config' option, we use the 'metavar' key in the argument specification and change the name of the option to 'conf_file'.
py
diff --git a/pwnypack/flow.py b/pwnypack/flow.py index <HASH>..<HASH> 100644 --- a/pwnypack/flow.py +++ b/pwnypack/flow.py @@ -358,35 +358,37 @@ class Flow(object): sys.stdout.flush() self.channel.write(data) - def writelines(self, lines, echo=None): + def writelines(self, lines, sep=b'\n'...
Make line-separator in writeline(s) configurable. Note: the default separator is now \n and no longer \r\n.
py
diff --git a/sasstests.py b/sasstests.py index <HASH>..<HASH> 100644 --- a/sasstests.py +++ b/sasstests.py @@ -1630,11 +1630,12 @@ def test_stack_trace_formatting(): raise AssertionError('expected to raise CompileError') except sass.CompileError: tb = traceback.format_exc() + # TODO: https://g...
update test for change in error pointer I believe this to be a bug so I've opened <URL>
py
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py index <HASH>..<HASH> 100644 --- a/holoviews/core/dimension.py +++ b/holoviews/core/dimension.py @@ -597,6 +597,11 @@ class Dimensioned(LabelledData): for d in params.pop(group)] params[group] = dim...
Ensured dimension cannot be duplicated across kdims and vdims
py
diff --git a/discord/embeds.py b/discord/embeds.py index <HASH>..<HASH> 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -509,7 +509,7 @@ class Embed: pass else: if timestamp: - result['timestamp'] = timestamp.isoformat() + result['timestamp'] = ...
Fix Embed.to_dict to work with TZ aware datetime objects.
py
diff --git a/highton.py b/highton.py index <HASH>..<HASH> 100644 --- a/highton.py +++ b/highton.py @@ -38,10 +38,22 @@ class Highton: @staticmethod def _parse_from_xml_to_dict(xml): + """ + Parses valid XML into native Python dictionaries with the ability to parse them back into XML later on. ...
Added docstrings to the two static methods for parsing
py
diff --git a/pybar/fei4/register_utils.py b/pybar/fei4/register_utils.py index <HASH>..<HASH> 100644 --- a/pybar/fei4/register_utils.py +++ b/pybar/fei4/register_utils.py @@ -1333,8 +1333,8 @@ def scan_loop(self, command, repeat_command=100, use_delay=True, mask_steps=3, e # pre-calculate often used commands ...
ENH: calculate delay only if needed
py
diff --git a/src/rasterstats/main.py b/src/rasterstats/main.py index <HASH>..<HASH> 100644 --- a/src/rasterstats/main.py +++ b/src/rasterstats/main.py @@ -1,10 +1,13 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division -import numpy as np -import warnings + from affine i...
workaround for numpy on win <I>bit, resolves #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( author_email = 'rudolph.pienaar@gmail.com', url = 'https://github.com/FNNDSC/pfmisc', packages = ['pfmisc'], - install_requires = ['pudb', 'pfmis...
Fix recursive dependency on self
py
diff --git a/flask_boost/project/application/utils/assets.py b/flask_boost/project/application/utils/assets.py index <HASH>..<HASH> 100644 --- a/flask_boost/project/application/utils/assets.py +++ b/flask_boost/project/application/utils/assets.py @@ -44,8 +44,8 @@ def build(app): blueprints = app.blueprints.keys...
Update page_js_prefix and page_js_suffix.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='sisy', python_requires='>=3.6', - version='1.0b3', + version='1.0b4', description='A lightweight repeating task runner app for Django', long_description=long_descriptio...
Limit version of channels in setup.py Channels <I> changed pretty much everything, and I haven't had time to rework the whole structure of sisy to match. So until I do, this will keep this version working by making sure Channels v1 is used.
py
diff --git a/plenum/test/monitoring/test_throughput_based_master_degradation_detection.py b/plenum/test/monitoring/test_throughput_based_master_degradation_detection.py index <HASH>..<HASH> 100644 --- a/plenum/test/monitoring/test_throughput_based_master_degradation_detection.py +++ b/plenum/test/monitoring/test_throug...
INDY-<I>: Throughput measurement tests - Fixed a typo.
py
diff --git a/safe/gui/tools/wizard/wizard_strings.py b/safe/gui/tools/wizard/wizard_strings.py index <HASH>..<HASH> 100644 --- a/safe/gui/tools/wizard/wizard_strings.py +++ b/safe/gui/tools/wizard/wizard_strings.py @@ -101,6 +101,12 @@ tephra_kgm2_question = tr( 'tephra intensity in kg/m<sup>2</sup>') volcano_vol...
add missing strings for vector hazard
py
diff --git a/vendor/visualmetrics.py b/vendor/visualmetrics.py index <HASH>..<HASH> 100755 --- a/vendor/visualmetrics.py +++ b/vendor/visualmetrics.py @@ -143,7 +143,7 @@ def extract_frames(video, directory, full_resolution, viewport): match = re.search(pattern, line) if match: ...
Fix the bug where a frame is missed after ffmpeg transformation (#<I>)
py
diff --git a/separatedvaluesfield/tests/tests.py b/separatedvaluesfield/tests/tests.py index <HASH>..<HASH> 100644 --- a/separatedvaluesfield/tests/tests.py +++ b/separatedvaluesfield/tests/tests.py @@ -170,7 +170,7 @@ class SeparatedValuesFieldTests(TestCase): form = ProjectCastIntForm(data={ '...
Remove u'' stuff for py3 compatibility.
py
diff --git a/src/discoursegraphs/corpora.py b/src/discoursegraphs/corpora.py index <HASH>..<HASH> 100644 --- a/src/discoursegraphs/corpora.py +++ b/src/discoursegraphs/corpora.py @@ -140,9 +140,3 @@ class PCC(Sequence): pcc = PCC() - - -try: - tuebadz = dg.read_exportxml(TUEBADZ_PATH) -except IOError: - pass...
we can't import tuebadz like we did with pcc - iterating over the corpus works only once - reimporting doesn't seem to help
py
diff --git a/angr/state_plugins/filesystem.py b/angr/state_plugins/filesystem.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/filesystem.py +++ b/angr/state_plugins/filesystem.py @@ -217,7 +217,7 @@ class SimFilesystem(SimStatePlugin): # pretends links don't exist :return: A tuple of the mount and a li...
Fix mountpoint resolution by matching deeper paths first. Otherwise `/xxx` would never get matched if `/` exists as a mountpoint.
py
diff --git a/src/pdfCropMargins/gui.py b/src/pdfCropMargins/gui.py index <HASH>..<HASH> 100644 --- a/src/pdfCropMargins/gui.py +++ b/src/pdfCropMargins/gui.py @@ -862,10 +862,6 @@ def create_gui(input_doc_fname, fixed_input_doc_fname, output_doc_fname, def is_zoom(btn): return btn.startswith("Toggle Zoom"...
remove now unused page_mod event fun in gui code
py
diff --git a/mease/backends/redis.py b/mease/backends/redis.py index <HASH>..<HASH> 100644 --- a/mease/backends/redis.py +++ b/mease/backends/redis.py @@ -1,10 +1,17 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import -import redis import pickle import logging -from toredis import Client + +try: + ...
Added backend dependencies handler
py