diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/sgp4/__init__.py b/sgp4/__init__.py
index <HASH>..<HASH> 100644
--- a/sgp4/__init__.py
+++ b/sgp4/__init__.py
@@ -37,7 +37,7 @@ Then invoke the tests using the Python Standard Library::
The C++ function names have been retained, since users may already be
familiar with this library in other languages. ... | Minor documentation fix (#<I>) Update the documentation — the TLE referenced as "Vanguard 1" in the docs looks like it is actually from the ISS. | py |
diff --git a/prospector/profiles/profile.py b/prospector/profiles/profile.py
index <HASH>..<HASH> 100644
--- a/prospector/profiles/profile.py
+++ b/prospector/profiles/profile.py
@@ -356,4 +356,4 @@ def _load_profile(name_or_path, profile_path, shorthands_found=None,
inherit_order += new_il
shorthands... | astroid <I> dies to due a maximum recursion limit which, after binary chopping, seems to be due to the recursion in _load_profile. By creating a copy of the inherits list, the astroid recursion goes away, so this must be some follow-by-ref vs follow-by-val difference. | py |
diff --git a/gmupload.py b/gmupload.py
index <HASH>..<HASH> 100755
--- a/gmupload.py
+++ b/gmupload.py
@@ -115,7 +115,8 @@ def get_file_list():
def main():
do_auth()
- files = get_file_list()
+ _print("Loading local songs...")
+ files, exclude_files = get_file_list()
# Upload songs to your Google Music library... | Add loading output to gmupload | py |
diff --git a/salt/states/supervisord.py b/salt/states/supervisord.py
index <HASH>..<HASH> 100644
--- a/salt/states/supervisord.py
+++ b/salt/states/supervisord.py
@@ -27,8 +27,13 @@ def _check_error(result, success_message):
ret = {}
if 'ERROR' in result:
- ret['comment'] = result
- ret['resul... | Do not throw errors for supervisor when success | py |
diff --git a/great_expectations/dataset/util.py b/great_expectations/dataset/util.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/util.py
+++ b/great_expectations/dataset/util.py
@@ -61,7 +61,7 @@ Usage::
pass
class Bar(Foo):
- @doc_inherit
+ @DocInherit
def fo... | this version doesn't bind the name 'doc_inherit', so use DocInherit here. | py |
diff --git a/zinnia/flags.py b/zinnia/flags.py
index <HASH>..<HASH> 100644
--- a/zinnia/flags.py
+++ b/zinnia/flags.py
@@ -17,7 +17,7 @@ def _get_user_flagger():
user = User.objects.get(pk=COMMENT_FLAG_USER_ID)
except User.DoesNotExist:
try:
- user = User.objects.get(username=FLAGGER_U... | More generic code for getting the user flagger | py |
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/utils.py
+++ b/rest_framework_json_api/utils.py
@@ -139,6 +139,9 @@ def extract_id(fields, resource):
def extract_attributes(fields, resource):
data = OrderedDict()
for f... | Remove the id field from attributes as it already exists in `data` | py |
diff --git a/astropy_helpers/commands/build_ext.py b/astropy_helpers/commands/build_ext.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/commands/build_ext.py
+++ b/astropy_helpers/commands/build_ext.py
@@ -14,7 +14,7 @@ def should_build_with_cython(previous_cython_version, is_release):
"""
Returns the pr... | Apply suggestions from code review Minor fixes/clarifications | py |
diff --git a/linguist/fields.py b/linguist/fields.py
index <HASH>..<HASH> 100644
--- a/linguist/fields.py
+++ b/linguist/fields.py
@@ -6,6 +6,7 @@ from collections import defaultdict
from django.db import models
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
+from django.utils.f... | Fix mistake (re-add supported_languages property but as a cached_property). | py |
diff --git a/python/mxnet/gluon/contrib/nn/basic_layers.py b/python/mxnet/gluon/contrib/nn/basic_layers.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/gluon/contrib/nn/basic_layers.py
+++ b/python/mxnet/gluon/contrib/nn/basic_layers.py
@@ -165,7 +165,10 @@ class SyncBatchNorm(BatchNorm):
Standard BN [1]_ impl... | modifying SyncBN doc for FP<I> use case (#<I>) LGTM | py |
diff --git a/squad/core/admin.py b/squad/core/admin.py
index <HASH>..<HASH> 100644
--- a/squad/core/admin.py
+++ b/squad/core/admin.py
@@ -84,8 +84,8 @@ resend_notification.short_description = "Re-send notification"
class ProjectStatusAdmin(admin.ModelAdmin):
model = models.ProjectStatus
ordering = ['-build_... | core.admin: list and fiter by ProjectStatus.finished | py |
diff --git a/salt/log/handlers/fluent_mod.py b/salt/log/handlers/fluent_mod.py
index <HASH>..<HASH> 100644
--- a/salt/log/handlers/fluent_mod.py
+++ b/salt/log/handlers/fluent_mod.py
@@ -48,7 +48,6 @@ from __future__ import absolute_import
from __future__ import print_function
# Import python libs
-import os
impor... | Fixing some lint. | py |
diff --git a/vk/api.py b/vk/api.py
index <HASH>..<HASH> 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -91,7 +91,7 @@ class APISession(object):
if u'login.vk.com/?act=grant_access' in response.text:
pattern = u'<form method="post" action="(?P<url>[^"]+)">'
- match = re.search(pattern, resp... | fixed handling of permissions page in python 3 | py |
diff --git a/dvc/remote/gs.py b/dvc/remote/gs.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/gs.py
+++ b/dvc/remote/gs.py
@@ -62,7 +62,7 @@ class RemoteGS(RemoteBase):
b64_md5 = blob.md5_hash
md5 = base64.b64decode(b64_md5)
- return codecs.getencoder('hex')(md5)[0]
+ return codecs.get... | gs: don't return md5 in bytes format | py |
diff --git a/ipyrad/core/assembly.py b/ipyrad/core/assembly.py
index <HASH>..<HASH> 100644
--- a/ipyrad/core/assembly.py
+++ b/ipyrad/core/assembly.py
@@ -1842,14 +1842,13 @@ def _paramschecker(self, param, newvalue):
## let's get whatever the user entered as a tuple of letters
allowed = assemble.writ... | Fix annoying bug with output_format param I introduced recently. | py |
diff --git a/llvmlite/tests/test_binding.py b/llvmlite/tests/test_binding.py
index <HASH>..<HASH> 100644
--- a/llvmlite/tests/test_binding.py
+++ b/llvmlite/tests/test_binding.py
@@ -18,6 +18,14 @@ from llvmlite.binding import ffi
from . import TestCase
+# arvm7l needs extra ABI symbols to link successfully
+if pl... | add libgcc_s symbol and fix regex to accept "+hwdiv-arm" as a CPU feature | py |
diff --git a/coaster/sqlalchemy.py b/coaster/sqlalchemy.py
index <HASH>..<HASH> 100644
--- a/coaster/sqlalchemy.py
+++ b/coaster/sqlalchemy.py
@@ -51,7 +51,7 @@ __all_mixins = ['IdMixin', 'TimestampMixin', 'PermissionMixin', 'UrlForMixin',
class Query(BaseQuery):
"""
- Extends flask.ext.sqlalchemy.BaseQuery ... | Change reference away from flask.ext. | py |
diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py
index <HASH>..<HASH> 100644
--- a/discord/app_commands/commands.py
+++ b/discord/app_commands/commands.py
@@ -50,12 +50,12 @@ from .models import Choice
from .transformers import annotation_to_parameter, CommandParameter, NoneType
from .... | Fix missing type imports in context menu verification | py |
diff --git a/eventbrite/access_methods.py b/eventbrite/access_methods.py
index <HASH>..<HASH> 100644
--- a/eventbrite/access_methods.py
+++ b/eventbrite/access_methods.py
@@ -16,7 +16,6 @@ class AccessMethodsMixin(object):
Returns a list of :format:`category` as ``categories``, including
subcategories... | replace print statement. Summary: There was print statement in the SDK that did not belong there. It caused a Python3 test to fail. This diff will prevent that failure from happening again. Test Plan: Ran the line that failed with Python3 to ensure that it did not fail. Subscribers: michaelmanganiello JIRA Issues:... | py |
diff --git a/graphql_jwt/testcases.py b/graphql_jwt/testcases.py
index <HASH>..<HASH> 100644
--- a/graphql_jwt/testcases.py
+++ b/graphql_jwt/testcases.py
@@ -15,12 +15,16 @@ class SchemaRequestFactory(RequestFactory):
def __init__(self, **defaults):
super(SchemaRequestFactory, self).__init__(**defaults)
... | Added middleware method to SchemaRequestFactory | py |
diff --git a/pythologist/__init__.py b/pythologist/__init__.py
index <HASH>..<HASH> 100644
--- a/pythologist/__init__.py
+++ b/pythologist/__init__.py
@@ -466,6 +466,8 @@ class _Frame(GenericSample):
self._tissues_present = None # cache for the value
self._seg = pd.read_csv(seg_file,"\t")
sel... | add a check to make sure that the score file here is compatible with how we are using it ... which is only expecting one row in the score for now... if we encounter more we need to refactor | py |
diff --git a/maildir-deduplicate.py b/maildir-deduplicate.py
index <HASH>..<HASH> 100755
--- a/maildir-deduplicate.py
+++ b/maildir-deduplicate.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: UTF-8 -*-
##############################################################################
# | Remove unnecessary emacs coding header which causes an error on buffer save with emacs <I>. | py |
diff --git a/dicom2nifti/compressed_dicom.py b/dicom2nifti/compressed_dicom.py
index <HASH>..<HASH> 100644
--- a/dicom2nifti/compressed_dicom.py
+++ b/dicom2nifti/compressed_dicom.py
@@ -13,12 +13,18 @@ logger = logging.getLogger(__name__)
def read_file(dicom_file, defer_size=None, stop_before_pixels=False, force=Fa... | icometrix/dicom2nifti#<I>: Fix for windows (provided by C-nit) | py |
diff --git a/codenerix_storages/__init__.py b/codenerix_storages/__init__.py
index <HASH>..<HASH> 100644
--- a/codenerix_storages/__init__.py
+++ b/codenerix_storages/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "1.0.5"
+__version__ = "2.0.1"
__authors__ = [
'Juan Miguel Taboada Godoy <juanmi@centrologic.com>', | New version incompatible with version 1.x (check branch 'version1' for older versions and bugs resolved on older versions) | py |
diff --git a/datatableview/datatables.py b/datatableview/datatables.py
index <HASH>..<HASH> 100644
--- a/datatableview/datatables.py
+++ b/datatableview/datatables.py
@@ -380,13 +380,12 @@ class Datatable(six.with_metaclass(DatatableMetaclass)):
""" Legacy utility for fetching the database columns and non-data... | Fix method I think this is unused at this point except for by the full-legacy mode. Need to verify it's doing what it's supposed to, because the way it was, it was very broken. | py |
diff --git a/abydos/_compat.py b/abydos/_compat.py
index <HASH>..<HASH> 100644
--- a/abydos/_compat.py
+++ b/abydos/_compat.py
@@ -25,13 +25,13 @@ along with Abydos. If not, see <http://www.gnu.org/licenses/>.
import sys
# pylint: disable=invalid-name
-if sys.version_info[0] == 3:
+if sys.version_info[0] == 3: # pr... | disabled coverage checking of _compat branches, which can't be tested in a single version of python | py |
diff --git a/django_auth_adfs/middleware.py b/django_auth_adfs/middleware.py
index <HASH>..<HASH> 100644
--- a/django_auth_adfs/middleware.py
+++ b/django_auth_adfs/middleware.py
@@ -21,8 +21,8 @@ except ImportError: # Django < 1.10
LOGIN_EXEMPT_URLS = [
compile(django_settings.LOGIN_URL.lstrip('/')),
- com... | Remove broken and deprecated django setting. | py |
diff --git a/pandas/io/html.py b/pandas/io/html.py
index <HASH>..<HASH> 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -1029,7 +1029,7 @@ def read_html(io, match='.+', flavor=None, header=None, index_col=None,
.. versionadded:: 0.19.0
- display_only : bool, default True
+ displayed_only : ... | DOC: read_html typo for displayed_only arg (#<I>) | py |
diff --git a/parse_rest/user.py b/parse_rest/user.py
index <HASH>..<HASH> 100644
--- a/parse_rest/user.py
+++ b/parse_rest/user.py
@@ -113,6 +113,28 @@ class User(ParseResource):
def __repr__(self):
return '<User:%s (Id %s)>' % (getattr(self, 'username', None), self.objectId)
+
+ def removeRelati... | Handle adding and removing relations by User. | py |
diff --git a/djcelery/managers.py b/djcelery/managers.py
index <HASH>..<HASH> 100644
--- a/djcelery/managers.py
+++ b/djcelery/managers.py
@@ -237,9 +237,4 @@ class TaskStateManager(ExtendedManager):
def purge(self):
with commit_on_success():
- meta = self.model._meta
- cursor = se... | fixes task cleanup when FK on TaskState.task_id fix from issue #<I>. uses django's managers to cleanup | py |
diff --git a/inginious/frontend/courses.py b/inginious/frontend/courses.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/courses.py
+++ b/inginious/frontend/courses.py
@@ -139,6 +139,8 @@ class WebAppCourse(Course):
""" Returns True if the user is allowed by the ACL """
if self.get_access_contr... | ACL should return False if user is not logged | py |
diff --git a/grip/readers.py b/grip/readers.py
index <HASH>..<HASH> 100644
--- a/grip/readers.py
+++ b/grip/readers.py
@@ -39,7 +39,7 @@ class ReadmeReader(object):
Returns the relative filename for the specified subpath, or None
if the file does not exist.
"""
- return subpath
+ ... | Return None for default filename_for. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,7 @@
from os.path import join, dirname
from setuptools import setup, find_packages
import sys
-
-
+import os
VERSION = (0, 4, 1)
__version__ = VERSION
@@ -30,7 +29,9 @@ if sys.version_info[:2] == (2, 6):
te... | only require thrift if we are going to use it This commit is mostly for travis since thrift has trouble downloading at times. | py |
diff --git a/tests/test_linklabel.py b/tests/test_linklabel.py
index <HASH>..<HASH> 100644
--- a/tests/test_linklabel.py
+++ b/tests/test_linklabel.py
@@ -36,3 +36,12 @@ class TestLinkLabel(BaseWidgetTest):
self.window.update()
label["clicked_color"] = "purple"
self.window.update()
+
+ def... | Increase testcoverage to make codecov happy | py |
diff --git a/tests/utils.py b/tests/utils.py
index <HASH>..<HASH> 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -99,7 +99,9 @@ def reinit_hive_container(client: TheHiveApi) -> None:
alerts = client.alert.find()
cases = client.case.find()
+ observables = client.case.find()
with ThreadPoolExec... | Delete observables during container reinit | py |
diff --git a/pyinfra/operations/pkg.py b/pyinfra/operations/pkg.py
index <HASH>..<HASH> 100644
--- a/pyinfra/operations/pkg.py
+++ b/pyinfra/operations/pkg.py
@@ -39,8 +39,7 @@ def packages(state, host, packages=None, present=True, pkg_path=None):
'''
if present is True:
- # Autogenerate package path... | Don't provide `PKG_PATH` envvar if `/etc/installurl` file exists. | py |
diff --git a/bokeh/server/views/backbone.py b/bokeh/server/views/backbone.py
index <HASH>..<HASH> 100644
--- a/bokeh/server/views/backbone.py
+++ b/bokeh/server/views/backbone.py
@@ -46,7 +46,6 @@ def bulk_upsert(docid):
for m in models:
if m.get('docs') is None:
m.set('docs', [docid])
- ... | no need to set created in views now | py |
diff --git a/api.py b/api.py
index <HASH>..<HASH> 100644
--- a/api.py
+++ b/api.py
@@ -61,11 +61,13 @@ class Record(SmartJson):
return None
additional_info = record_model.additional_info \
if record_model.additional_info else {'master_format': 'marc'}
- reco... | records: fix for api Record.create(...) NOTE: beware, patch amended by Tibor to use new file names | py |
diff --git a/locksmith/mongoauth/management/commands/apireport.py b/locksmith/mongoauth/management/commands/apireport.py
index <HASH>..<HASH> 100644
--- a/locksmith/mongoauth/management/commands/apireport.py
+++ b/locksmith/mongoauth/management/commands/apireport.py
@@ -34,4 +34,4 @@ class Command(BaseCommand):
... | split off decimal portion of counts in apireport | py |
diff --git a/model_settings/models.py b/model_settings/models.py
index <HASH>..<HASH> 100644
--- a/model_settings/models.py
+++ b/model_settings/models.py
@@ -16,7 +16,7 @@ except:
# for django-polymorphic < 0.8
from polymorphic import PolymorphicModel
from polymorphic.query import PolymorphicQuerySet
-impor... | Fixed Python 3 incompatibility. | py |
diff --git a/tinyscript/argreparse.py b/tinyscript/argreparse.py
index <HASH>..<HASH> 100644
--- a/tinyscript/argreparse.py
+++ b/tinyscript/argreparse.py
@@ -304,7 +304,7 @@ class ArgumentParser(_NewActionsContainer, BaseArgumentParser):
self.scriptname = sname
# format the description message
... | Minor change in version handling in argreparse | py |
diff --git a/great_expectations/cli/datasource.py b/great_expectations/cli/datasource.py
index <HASH>..<HASH> 100644
--- a/great_expectations/cli/datasource.py
+++ b/great_expectations/cli/datasource.py
@@ -206,9 +206,15 @@ To launch with jupyter lab:
"""
msg_sqlalchemy_go_to_notebook = """
-To create expectations ... | Updated the go to the notebook message wording for SQL | py |
diff --git a/safe_qgis/test_keyword_io.py b/safe_qgis/test_keyword_io.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/test_keyword_io.py
+++ b/safe_qgis/test_keyword_io.py
@@ -51,11 +51,13 @@ class KeywordIOTest(unittest.TestCase):
'datatype': 'itb',
... | Make all keyword io tests pass again | py |
diff --git a/bypy.py b/bypy.py
index <HASH>..<HASH> 100755
--- a/bypy.py
+++ b/bypy.py
@@ -387,8 +387,11 @@ def pprgrc(finish, total, start_time = None, existing = 0,
' (' + speed + ', ' + \
human_time_short(elapsed) + ' gone)'
msg = '\r' + prefix + '[' + segth * '=' + (seg - segth) * '_' + ']' + \
- " {}%... | Shorten the progress display to make it one-line in normal situations | py |
diff --git a/src/python/pants/engine/target.py b/src/python/pants/engine/target.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/engine/target.py
+++ b/src/python/pants/engine/target.py
@@ -1827,7 +1827,7 @@ class BundlesField(AsyncField):
value_or_default,
expected_type="an itera... | Remove redundant cast call (#<I>) | py |
diff --git a/praw_script_oauth/config.py b/praw_script_oauth/config.py
index <HASH>..<HASH> 100644
--- a/praw_script_oauth/config.py
+++ b/praw_script_oauth/config.py
@@ -4,8 +4,8 @@ def read_config(config_file, config_dir="."):
path = os.path.join(config_dir, config_file)
try:
with open(path, "r") as f:
- tok... | Strip whitespace from saved token to prevent PRAW from occasionally <I>ing | py |
diff --git a/satpy/tests/test_scene.py b/satpy/tests/test_scene.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/test_scene.py
+++ b/satpy/tests/test_scene.py
@@ -500,6 +500,8 @@ class TestScene(unittest.TestCase):
def test_aggregate(self):
"""Test the aggregate method."""
+ if (sys.version_info ... | Skip aggregation test in python 2 | py |
diff --git a/restclients/canvas/__init__.py b/restclients/canvas/__init__.py
index <HASH>..<HASH> 100644
--- a/restclients/canvas/__init__.py
+++ b/restclients/canvas/__init__.py
@@ -31,8 +31,11 @@ class Canvas(object):
Prepares for paginated responses
"""
self._per_page = per_page
- s... | allow for canvas id as_user_id | py |
diff --git a/django_mailbox/models.py b/django_mailbox/models.py
index <HASH>..<HASH> 100755
--- a/django_mailbox/models.py
+++ b/django_mailbox/models.py
@@ -263,7 +263,7 @@ class Mailbox(models.Model):
msg.to_header = message['to']
msg.save()
message = self._get_dehydrated_m... | Fix the IndentationError in last commit. | py |
diff --git a/flask_github.py b/flask_github.py
index <HASH>..<HASH> 100644
--- a/flask_github.py
+++ b/flask_github.py
@@ -177,6 +177,12 @@ class GitHub(object):
if 'access_token' not in params:
params['access_token'] = self.get_access_token()
+ # Set ``Authorization`` header
+ if ... | ENH: Authorization token added to request headers Closes #<I> | py |
diff --git a/integration/integration.py b/integration/integration.py
index <HASH>..<HASH> 100644
--- a/integration/integration.py
+++ b/integration/integration.py
@@ -4,6 +4,8 @@ import shutil
from spec import Spec, skip
from invoke import run
+from invoke.vendor.six import string_types
+
class integration(Spec)... | Make integration test re #<I> actually test both changelogs :D | py |
diff --git a/ella/positions/models.py b/ella/positions/models.py
index <HASH>..<HASH> 100644
--- a/ella/positions/models.py
+++ b/ella/positions/models.py
@@ -1,5 +1,6 @@
from datetime import datetime
+from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import ugettext_lazy as _
fro... | If position hasn't target_ct or object id doesn't raise exception. git-svn-id: <URL> | py |
diff --git a/hbmqtt/client.py b/hbmqtt/client.py
index <HASH>..<HASH> 100644
--- a/hbmqtt/client.py
+++ b/hbmqtt/client.py
@@ -183,7 +183,7 @@ class MQTTClient:
"""
try:
while True:
- task: asyncio.Future = self.client_tasks.pop()
+ task = self.client_tasks.p... | Update client.py python <I> support | py |
diff --git a/engineer/util.py b/engineer/util.py
index <HASH>..<HASH> 100644
--- a/engineer/util.py
+++ b/engineer/util.py
@@ -414,7 +414,7 @@ def diff_dir(dir_cmp, left_path=True):
def make_precompiled_reference(a_path):
- if a_path.endswith('_precompiled.css'):
+ if not a_path.endswith('.less'):
r... | Precompiled CSS references were affecting more than just less files because I am an idiot. | py |
diff --git a/GPy/kern/_src/add.py b/GPy/kern/_src/add.py
index <HASH>..<HASH> 100644
--- a/GPy/kern/_src/add.py
+++ b/GPy/kern/_src/add.py
@@ -134,7 +134,7 @@ class Add(CombinationKernel):
eff_dL_dpsi1 += dL_dpsi2.sum(1) * p2.variance * 2.
else:
eff_dL_dpsi1 +=... | [psi-stats] add kernel was missing a psi zero call | py |
diff --git a/OpenPNM/Graphics.py b/OpenPNM/Graphics.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Graphics.py
+++ b/OpenPNM/Graphics.py
@@ -1,5 +1,7 @@
+import numpy as np
+import vtk
+
def preview(pn, values=[]):
- import vtk
coords = pn.get_pore_data(prop='coords')
heads, tails = pn.get_throat_data(pro... | True divide in array normalization. Integer inputs were getting zeroed out. Former-commit-id: dc3c<I>ef0c6c<I>ba<I>d5ea7be3a<I>b<I>c<I> Former-commit-id: bfb<I>edc<I>c<I>b<I>a<I>a7d<I>f<I> | py |
diff --git a/trump/orm.py b/trump/orm.py
index <HASH>..<HASH> 100644
--- a/trump/orm.py
+++ b/trump/orm.py
@@ -97,13 +97,20 @@ class SymbolManager(object):
self.ses.close()
def create(self, name, description=None, freq=None, units=None,
- agg_method="PRIORITY_FILL"):
+ ag... | Symbol Manager raises on dup, close #9 | py |
diff --git a/dclab/rtdc_dataset/fmt_tdms/__init__.py b/dclab/rtdc_dataset/fmt_tdms/__init__.py
index <HASH>..<HASH> 100644
--- a/dclab/rtdc_dataset/fmt_tdms/__init__.py
+++ b/dclab/rtdc_dataset/fmt_tdms/__init__.py
@@ -126,9 +126,9 @@ class RTDC_TDMS(RTDCBase):
self.config["experiment"]["time"] = timestr
... | fix: data type of laser wavelength must be float (tdms file format) | py |
diff --git a/pymrio/core/fileio.py b/pymrio/core/fileio.py
index <HASH>..<HASH> 100644
--- a/pymrio/core/fileio.py
+++ b/pymrio/core/fileio.py
@@ -270,7 +270,9 @@ def load(path, include_core=True, path_in_arc=''):
key = 'F_Y'
if zipfile.is_zipfile(str(path)):
- full_file_name = os.pat... | fixed os.path in load method for array reading | py |
diff --git a/sos/plugins/sar.py b/sos/plugins/sar.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/sar.py
+++ b/sos/plugins/sar.py
@@ -13,7 +13,7 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
-from os import listdir
+import o... | Fix exception when sar module enabled on system without sysstat The sar module assumes that /var/log/sa exists when it is enabled. Check for its presence and exit from setup early. | py |
diff --git a/upsmychoice/__init__.py b/upsmychoice/__init__.py
index <HASH>..<HASH> 100644
--- a/upsmychoice/__init__.py
+++ b/upsmychoice/__init__.py
@@ -2,9 +2,10 @@
# pylint: disable=wrong-import-position
import json
-if not hasattr(json, 'JSONDecodeError'):
- json.JSONDecodeError = ValueError
-from json.deco... | Python 3.x Fix This version works seamlessly for Python <I> and <I> | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -20,4 +20,4 @@ __revision__ = "$Id$"
# In general, major and minor version should loosely follow the Python
# version number the distutils code was shipped with.
#
-__version__ = "2.5.0"
+__version__ = "2.5.1" | Bump the patch level version of distutils since there were a few bug fixes since the <I> release. | py |
diff --git a/mapillary_tools/exif_read.py b/mapillary_tools/exif_read.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/exif_read.py
+++ b/mapillary_tools/exif_read.py
@@ -137,9 +137,15 @@ class ExifRead:
'''
Extract altitude
'''
+ altitude_ref = {
+ 0: 1,
+ 1:... | fix: multiply altitude with the reference | py |
diff --git a/test_duct.py b/test_duct.py
index <HASH>..<HASH> 100644
--- a/test_duct.py
+++ b/test_duct.py
@@ -151,9 +151,10 @@ def test_nesting():
def test_cwd():
# Test cwd at both the top level and the command level, and that either can
- # be a pathlib Path.
- tmpdir = tempfile.mkdtemp()
- another ... | handle temp dir symlinks for tests on OSX | py |
diff --git a/src/wormhole/twisted/transcribe.py b/src/wormhole/twisted/transcribe.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/twisted/transcribe.py
+++ b/src/wormhole/twisted/transcribe.py
@@ -144,7 +144,7 @@ class Channel:
queryargs = urlencode([("appid", self._appid),
("... | twisted.transcribe: use same Agent for ReconnectingEventSource This will be especially important when we add Tor support. | py |
diff --git a/suspect/io/tarquin.py b/suspect/io/tarquin.py
index <HASH>..<HASH> 100644
--- a/suspect/io/tarquin.py
+++ b/suspect/io/tarquin.py
@@ -10,7 +10,7 @@ def save_dpt(filename, data):
fout.write("Phi0\t{0:8.8e}\n".format(0).encode())
fout.write("Phi1\t{0:8.8e}\n".format(0).encode())
fo... | fix Tarquin export to use echo time in seconds | py |
diff --git a/lwr/routes.py b/lwr/routes.py
index <HASH>..<HASH> 100644
--- a/lwr/routes.py
+++ b/lwr/routes.py
@@ -37,6 +37,7 @@ class LwrController(Controller):
@LwrController(response_type='json')
def setup(manager, job_id, tool_id=None, tool_version=None):
job_id = manager.setup_job(job_id, tool_id, tool_vers... | Add inputs_directory to setup job config dict. | py |
diff --git a/tests/functional_tests/expected_values/vk.py b/tests/functional_tests/expected_values/vk.py
index <HASH>..<HASH> 100644
--- a/tests/functional_tests/expected_values/vk.py
+++ b/tests/functional_tests/expected_values/vk.py
@@ -11,8 +11,8 @@ conf = fixtures.get_configuration('vk')
PICTURE = re.compile(r'htt... | Updated vk login and password xpaths. | py |
diff --git a/releases/models.py b/releases/models.py
index <HASH>..<HASH> 100644
--- a/releases/models.py
+++ b/releases/models.py
@@ -42,6 +42,17 @@ class Issue(nodes.Element):
return self['type_']
@property
+ def is_featurelike(self):
+ if self.type == 'bug':
+ return self.major
+... | Factor out bug-vs-feature logic | py |
diff --git a/spock/plugins/helpers/clientinfo.py b/spock/plugins/helpers/clientinfo.py
index <HASH>..<HASH> 100644
--- a/spock/plugins/helpers/clientinfo.py
+++ b/spock/plugins/helpers/clientinfo.py
@@ -24,14 +24,6 @@ from spock.mcp.mcdata import (
FLG_XPOS_REL, FLG_YPOS_REL, FLG_ZPOS_REL, FLG_YROT_REL, FLG_XROT_REL
... | Remove Position class, is Vec3 now | py |
diff --git a/microdrop/__init__.py b/microdrop/__init__.py
index <HASH>..<HASH> 100755
--- a/microdrop/__init__.py
+++ b/microdrop/__init__.py
@@ -370,7 +370,7 @@ class DmfControlBoardPlugin(SingletonPlugin):
app = get_app()
if self.control_board.connected() == False:
logger.warning("Warn... | Remove n_channels property from protocol class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,9 +32,10 @@ configuration = {
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
- "Programming Language :: Python :: 3.7",
"Programming Languag... | Adding Python <I> to Setup.py Added <I> to the Setup so conda-forge picks up the dependency correctly. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,6 @@ setup(
test_requires=[
'django>=1.7',
'django-model-utils>=2.0.3',
- 'six>=1.9.0',
'jsonfield>=1.0.3',
'pytz'
], | Tests no more depend on 'six' (refer to #<I>) | py |
diff --git a/peyotl/test/test_taxomachine.py b/peyotl/test/test_taxomachine.py
index <HASH>..<HASH> 100644
--- a/peyotl/test/test_taxomachine.py
+++ b/peyotl/test/test_taxomachine.py
@@ -165,12 +165,12 @@ class TestTaxomachine(unittest.TestCase):
resp = self.taxomachine.TNRS(name, 'Mammals')
self.asse... | Drosophila for Nanadina, as ott<I> no longer has the Nandina as a synonym of Labeo. test of taxomachine directly | py |
diff --git a/tests/unit/test_s3.py b/tests/unit/test_s3.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_s3.py
+++ b/tests/unit/test_s3.py
@@ -47,9 +47,9 @@ class S3Tests(unittest.TestCase):
assert "S3_access_key" in s.info.keys()
assert "S3_session_token" in s.info.keys()
- @vcr.use_cassette... | windows tests for s3.download are failing on cassettes, but not travis | py |
diff --git a/spotify/models/track.py b/spotify/models/track.py
index <HASH>..<HASH> 100644
--- a/spotify/models/track.py
+++ b/spotify/models/track.py
@@ -3,7 +3,7 @@ from spotify import _types
Artist = _types.artist
class Track:
- __slots__ = ['__data', '__client', 'artists']
+ __slots__ = ('__data', '__clie... | linting change for __slots__ | py |
diff --git a/fireplace/cards/__init__.py b/fireplace/cards/__init__.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/__init__.py
+++ b/fireplace/cards/__init__.py
@@ -21,6 +21,7 @@ tagnames = {
"Stealth": GameTag.STEALTH,
"Taunt": GameTag.TAUNT,
"Windfury": GameTag.WINDFURY,
+ "OneTurnEffect": GameTag.OneTurn... | Allow overriding OneTurnEffect in card definitions | py |
diff --git a/app/lookups/sqlite/psms.py b/app/lookups/sqlite/psms.py
index <HASH>..<HASH> 100644
--- a/app/lookups/sqlite/psms.py
+++ b/app/lookups/sqlite/psms.py
@@ -34,3 +34,4 @@ class PSMDB(ResultLookupInterface):
self.index_column('psmspecid_index', 'psms', 'spectra_id')
self.index_column('psmrowi... | Index on peptide sequence to be able to sort by it | py |
diff --git a/cpp_coveralls/coverage.py b/cpp_coveralls/coverage.py
index <HASH>..<HASH> 100644
--- a/cpp_coveralls/coverage.py
+++ b/cpp_coveralls/coverage.py
@@ -11,8 +11,8 @@ import subprocess
from . import gitrepo
-_CPP_EXTENSIONS = ['.h', '.hpp', '.cpp', '.cc', '.c']
-_SKIP_DIRS = set(['.git', '.svn', 'deps'])... | Add more C++ extensions, and ignore Mercurial directory. | py |
diff --git a/conversejs/boshclient.py b/conversejs/boshclient.py
index <HASH>..<HASH> 100644
--- a/conversejs/boshclient.py
+++ b/conversejs/boshclient.py
@@ -50,7 +50,7 @@ class BOSHClient(object):
"""
self.log = logging.getLogger('conversejs.boshclient')
- self.log.addHandler(logging.NullHa... | fix: does not conform to what's imported | py |
diff --git a/pyhomematic/devicetypes/actors.py b/pyhomematic/devicetypes/actors.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/actors.py
+++ b/pyhomematic/devicetypes/actors.py
@@ -291,6 +291,7 @@ class SwitchPowermeter(Switch, HelperActionOnTime, HMSensor):
self.SENSORNODE.update({"POWER": [2],
... | add FREQUENCY attribute to SwitchPowermeter (some) SwitchPowermeters apparently support FREQUENCY | py |
diff --git a/growler/router.py b/growler/router.py
index <HASH>..<HASH> 100644
--- a/growler/router.py
+++ b/growler/router.py
@@ -75,21 +75,21 @@ class Router():
if middleware is not None:
return self.add_route('GET', path, middleware)
else:
- return lambda func: do_get('GET',... | Fixed name error of add_route function in router. | py |
diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/__init__.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/__init__.py
index <HASH>..<HASH> 100644
--- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/__init__.py
+++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/__init__.py
@@ -12,6 +12,6 @@ from ._shared_a... | CI fix (#<I>) | py |
diff --git a/tests/unit/simple.py b/tests/unit/simple.py
index <HASH>..<HASH> 100644
--- a/tests/unit/simple.py
+++ b/tests/unit/simple.py
@@ -1,4 +1,7 @@
from salttesting import TestCase, expectedFailure
+from salttesting.helpers import ensure_in_syspath
+
+ensure_in_syspath('../')
class SimpleTest(TestCase):
@@... | added main run to simple.py | py |
diff --git a/lspreader/lspreader.py b/lspreader/lspreader.py
index <HASH>..<HASH> 100644
--- a/lspreader/lspreader.py
+++ b/lspreader/lspreader.py
@@ -275,8 +275,11 @@ def read(fname,**kw):
else:
remove_edges=False;
readers = {
- 2: lambda: read_flds(file,header,var, vp... | more lspreader corrections | py |
diff --git a/wsgidav/request_server.py b/wsgidav/request_server.py
index <HASH>..<HASH> 100644
--- a/wsgidav/request_server.py
+++ b/wsgidav/request_server.py
@@ -941,7 +941,11 @@ class RequestServer(object):
if destScheme and destScheme.lower() != environ["wsgi.url_scheme"].lower():
self._fail(... | Print a hint when we get an HTTP_BAD_GATEWAY due to reverse proxy misconfiguration Update #<I> | py |
diff --git a/lenstronomy/Util/package_util.py b/lenstronomy/Util/package_util.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/Util/package_util.py
+++ b/lenstronomy/Util/package_util.py
@@ -53,6 +53,11 @@ def short(_laconic=False):
all_modules = dict()
for loader, module_name, is_pkg in pkgutil.walk_packag... | Exempt Sampling.Pool.multiprocessing from the short/laconic APIs | py |
diff --git a/ledger/immutable_store/store.py b/ledger/immutable_store/store.py
index <HASH>..<HASH> 100644
--- a/ledger/immutable_store/store.py
+++ b/ledger/immutable_store/store.py
@@ -13,6 +13,9 @@ class F(Enum):
auditPath = 8
serialNo = 9
treeSize = 10
+ leafHash = 11
+ nodeHash = 12
+ rowNo... | Added some constants in enum F. | py |
diff --git a/meshio/msh_io/msh4.py b/meshio/msh_io/msh4.py
index <HASH>..<HASH> 100644
--- a/meshio/msh_io/msh4.py
+++ b/meshio/msh_io/msh4.py
@@ -105,11 +105,15 @@ def _read_entities(f, is_ascii, int_size, data_size):
num_physicals, = fromfile(f, c_ulong, 1)
physical_tags[d][tag] = list(fromf... | take care reading line-breaks in binary MSH4 entities #<I> | py |
diff --git a/_data.py b/_data.py
index <HASH>..<HASH> 100644
--- a/_data.py
+++ b/_data.py
@@ -1798,12 +1798,11 @@ class fitter():
# set up two axes. One for data and one for residuals.
a1 = _p.subplot(211)
a2 = _p.subplot(212, sharex=a1)
- a1.set_position([0.15, 0.75, ... | fitter plot tweak squashed the residuals a bit to see the full title. | py |
diff --git a/librouteros/connections.py b/librouteros/connections.py
index <HASH>..<HASH> 100644
--- a/librouteros/connections.py
+++ b/librouteros/connections.py
@@ -144,7 +144,7 @@ class ApiProtocol(Encoder, Decoder):
:return: Reply word, tuple with read words.
"""
- sentence = tuple(word f... | Optimize readWord() Return earlier when NULL byte (which marks ned of sentence) is received. No need to read more bytes and decode them. | py |
diff --git a/angr/storage/memory_mixins/paged_memory/pages/list_page.py b/angr/storage/memory_mixins/paged_memory/pages/list_page.py
index <HASH>..<HASH> 100644
--- a/angr/storage/memory_mixins/paged_memory/pages/list_page.py
+++ b/angr/storage/memory_mixins/paged_memory/pages/list_page.py
@@ -139,7 +139,7 @@ class Lis... | Incorrect length calculation for store() in ListPage.merge() (#<I>) The offset at which the data should be stored was not being taken into account for the `size` calculation in store | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,14 +1,14 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-VERSION='0.1'
+VERSION = '0.1'
from distutils.core import setup, Extension
-sources=[ 'src/llist.c',
- 'src/dllist.c',
- 'src/sllist.c',
- ... | added -ansi -pedantic flags to setup.py | py |
diff --git a/backtrader/resamplerfilter.py b/backtrader/resamplerfilter.py
index <HASH>..<HASH> 100644
--- a/backtrader/resamplerfilter.py
+++ b/backtrader/resamplerfilter.py
@@ -35,8 +35,7 @@ class DTFaker(object):
def __init__(self, sessionend, offset=timedelta()):
self.datetime = self
self.ses... | correct tmoffset usage from datas to have the conventional plus sign | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ class PyTest(TestCommand):
sys.exit(errno)
setup(
- name="Slave Particles",
+ name="slaveparticles",
description="Educative code on Slave Particles",
version="0.2",
packages=find... | sphinx to setup requirement and not package | py |
diff --git a/aikif/core_data.py b/aikif/core_data.py
index <HASH>..<HASH> 100644
--- a/aikif/core_data.py
+++ b/aikif/core_data.py
@@ -95,7 +95,7 @@ class CoreData(object):
using type (is_a, has_a, uses, contains, part_of)
"""
if self.check_type(tpe):
- self.links.append(self.name,... | CoreData links doesnt need name as it is held by self | py |
diff --git a/tests/test_objectlist.py b/tests/test_objectlist.py
index <HASH>..<HASH> 100644
--- a/tests/test_objectlist.py
+++ b/tests/test_objectlist.py
@@ -1,5 +1,5 @@
-from py.test import raises
+from py.test import raises, mark
from pygtkhelpers.ui.objectlist import ObjectList, Column, Cell
from pygtkhelpers.u... | add expandable cell test, xfailing | py |
diff --git a/datadog_checks_dev/setup.py b/datadog_checks_dev/setup.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/setup.py
+++ b/datadog_checks_dev/setup.py
@@ -26,7 +26,7 @@ REQUIRES = [
'coverage==4.5.4', # pinned due to https://github.com/nedbat/coveragepy/issues/883
'mock',
'psutil',
- ... | Upgrade dependencies (#<I>) | py |
diff --git a/luigi/contrib/ssh.py b/luigi/contrib/ssh.py
index <HASH>..<HASH> 100644
--- a/luigi/contrib/ssh.py
+++ b/luigi/contrib/ssh.py
@@ -57,6 +57,7 @@ class RemoteContext(object):
self.port = kwargs.get('port', None)
self.no_host_key_check = kwargs.get('no_host_key_check', False)
self.s... | Add support for pseudo-tty allocation. This is required to be able run sudo command. From man ssh ``` -t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t o... | py |
diff --git a/slave/buildslave/commands/transfer.py b/slave/buildslave/commands/transfer.py
index <HASH>..<HASH> 100644
--- a/slave/buildslave/commands/transfer.py
+++ b/slave/buildslave/commands/transfer.py
@@ -87,7 +87,7 @@ class SlaveFileUploadCommand(Command):
if length <= 0:
if self.stderr i... | don't print filenames with %r | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.