diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/utils/geojson.py b/utils/geojson.py
index <HASH>..<HASH> 100755
--- a/utils/geojson.py
+++ b/utils/geojson.py
@@ -26,6 +26,7 @@ import json
import random
import argparse
import fileinput
+import dateutil.parser
parser = argparse.ArgumentParser()
@@ -60,13 +61,14 @@ features = []
for line in file... | using rfc<I> for created_at, since that is what Date.toJSON uses. closes #<I> | py |
diff --git a/jawa/cli/__init__.py b/jawa/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/jawa/cli/__init__.py
+++ b/jawa/cli/__init__.py
@@ -3,9 +3,9 @@
import six
import click
-from jawa.cf import ClassVersion
+from jawa.cf import ClassVersion, ClassFile
from jawa.attribute import get_attribute_classes
-from ja... | Add a debugging shell command. | py |
diff --git a/src/aja/utils.py b/src/aja/utils.py
index <HASH>..<HASH> 100644
--- a/src/aja/utils.py
+++ b/src/aja/utils.py
@@ -150,17 +150,21 @@ def _get_rsync(files, source='/', target='/', exclude=None, arguments=None):
##
# Build files-from
for line in (files or []):
- ... | Fix to not add empty includes or excludes for rsync | py |
diff --git a/is_core/loading.py b/is_core/loading.py
index <HASH>..<HASH> 100644
--- a/is_core/loading.py
+++ b/is_core/loading.py
@@ -6,6 +6,7 @@ from importlib import import_module
from django.conf import settings
from django.utils.encoding import force_text
+from django.apps import apps
class App(object):
@... | Applications should be loaded via app config | py |
diff --git a/myfitnesspal/note.py b/myfitnesspal/note.py
index <HASH>..<HASH> 100644
--- a/myfitnesspal/note.py
+++ b/myfitnesspal/note.py
@@ -1,7 +1,9 @@
import datetime
+from six import text_type
-class Note(unicode):
+
+class Note(text_type):
def __new__(cls, note_data):
self = super(Note, cls).__... | [#<I>] Fix Python3x support for returned notes. | py |
diff --git a/library/ssh_key/ssh_key.py b/library/ssh_key/ssh_key.py
index <HASH>..<HASH> 100644
--- a/library/ssh_key/ssh_key.py
+++ b/library/ssh_key/ssh_key.py
@@ -17,10 +17,12 @@ class ssh_key(ShutItModule):
def finalize(self, shutit):
# We don't want to leave keys lying around.
- shutit.send... | removal of ssh keys optional (for playing with ansible) | py |
diff --git a/phy/cluster/manual/session.py b/phy/cluster/manual/session.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/manual/session.py
+++ b/phy/cluster/manual/session.py
@@ -128,8 +128,9 @@ class FeatureMasks(StoreItem):
# Weighted mean of the channels, weighted by the mean masks.
mean_pr... | Keep order in main_channels. | py |
diff --git a/test/test_sslv3_disabled.py b/test/test_sslv3_disabled.py
index <HASH>..<HASH> 100644
--- a/test/test_sslv3_disabled.py
+++ b/test/test_sslv3_disabled.py
@@ -63,7 +63,7 @@ class testSchedulerInit(ShinkenTest):
d.load_modules_manager()
# Launch an arbiter so that the scheduler get a conf... | Fix: test sslv3 with /bin change | py |
diff --git a/tests/main.py b/tests/main.py
index <HASH>..<HASH> 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -60,14 +60,17 @@ Available tasks:
)
class runtime_ssh_config_path:
- def capital_F_flag_specifies_runtime_ssh_config_file(self):
+ def _run(self, flag):
wi... | Flesh out another test and refactor | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,7 +19,6 @@ import shlex
sys.path.insert(0, os.path.abspath('../'))
import flask_nemo
-import setup
# If extensions (or modules to document with autodoc) are in another directory,
# add these directo... | Modified version system in doc conf | py |
diff --git a/tools/c7n_gcp/c7n_gcp/handler.py b/tools/c7n_gcp/c7n_gcp/handler.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_gcp/c7n_gcp/handler.py
+++ b/tools/c7n_gcp/c7n_gcp/handler.py
@@ -18,8 +18,7 @@ import os
import uuid
from c7n.config import Config
-from c7n.policy import PolicyCollection
-
+from c7n.loader... | gcp - functions use loader for initializing policy (#<I>) | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -8,7 +8,10 @@ from tempfile import mkstemp
from time import sleep
NOBODY_UID = pwd.getpwnam("nobody").pw_uid
-NOBODY_GID = grp.getgrnam("nobody").gr_gid
+if os.path.exists("/etc/debian_version"):
+ N... | Fix uid/gid tests on debian boxes. | py |
diff --git a/cumulusci/tasks/salesforce.py b/cumulusci/tasks/salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/salesforce.py
+++ b/cumulusci/tasks/salesforce.py
@@ -668,7 +668,7 @@ class UninstallPackaged(UninstallLocal):
class UninstallPackagedIncremental(UninstallPackaged):
name = 'UninstallPack... | Fixes #<I>, skip RecordType when generating package.xml for deletion | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -1148,7 +1148,7 @@ class H2O(object):
a = self.poll_url(a['response'],
timeoutSecs=timeoutSecs, retryDelaySecs=retryDelaySecs,
initialDelaySecs=initialDelaySecs, pollTimeoutSecs=pollTime... | I messed up poll_url by putting **kwargs in when GLM/GLMGrid calls it ....typo during an update yesterday. | py |
diff --git a/ella/articles/newman_admin.py b/ella/articles/newman_admin.py
index <HASH>..<HASH> 100644
--- a/ella/articles/newman_admin.py
+++ b/ella/articles/newman_admin.py
@@ -20,6 +20,7 @@ class InfoBoxAdmin(newman.NewmanModelAdmin):
rich_text_fields = {None: ('content',)}
class ArticleAdmin(PublishableAdmi... | created field added to articles newma_admin.py , used for publish_from custom filter. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
- 'django-modeldict>=1.1.2',
+ 'django-modeldict>=1.1.4',
'nexus>=0.1.7',
... | Bump modeldict reqs | py |
diff --git a/SoftLayer/CLI/storage_utils.py b/SoftLayer/CLI/storage_utils.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/storage_utils.py
+++ b/SoftLayer/CLI/storage_utils.py
@@ -51,7 +51,7 @@ allowedIpAddresses.primaryBackendIpAddress
"""),
column_helper.Column(
'source_subnet',
- ('allowedHo... | Fixed PEP8 E<I> issue | py |
diff --git a/pyrogram/methods/contacts/import_contacts.py b/pyrogram/methods/contacts/import_contacts.py
index <HASH>..<HASH> 100644
--- a/pyrogram/methods/contacts/import_contacts.py
+++ b/pyrogram/methods/contacts/import_contacts.py
@@ -42,7 +42,7 @@ class ImportContacts(Scaffold):
from pyrogram.ty... | Fix wrong example due to a method rename | py |
diff --git a/scripts/find_enrichment.py b/scripts/find_enrichment.py
index <HASH>..<HASH> 100755
--- a/scripts/find_enrichment.py
+++ b/scripts/find_enrichment.py
@@ -19,7 +19,7 @@ About significance cutoff:
import sys
import os.path as op
sys.path.insert(0, op.join(op.dirname(__file__), ".."))
-from goatools import... | Use full package name in import statement. | py |
diff --git a/treeherder/push_health/compare.py b/treeherder/push_health/compare.py
index <HASH>..<HASH> 100644
--- a/treeherder/push_health/compare.py
+++ b/treeherder/push_health/compare.py
@@ -23,7 +23,9 @@ def get_commit_history(repository, revision, push):
'parentRepository': RepositorySerializer(parent_re... | Bug <I> - Fix Push Health commit order (#<I>) | py |
diff --git a/beets/mediafile.py b/beets/mediafile.py
index <HASH>..<HASH> 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -945,6 +945,10 @@ class MediaFile(object):
return self.mgfile.info.length
@property
+ def samplerate(self):
+ return self.mgfile.info.sample_rate
+
+ @proper... | Added a property for sample rate, mutagen provides this as sample_rate Original: beetbox/beets@cda7b4d | py |
diff --git a/opp/facade.py b/opp/facade.py
index <HASH>..<HASH> 100644
--- a/opp/facade.py
+++ b/opp/facade.py
@@ -736,6 +736,7 @@ class Preauthorizations(object):
class Checkouts(object):
def __init__(self, checkout_id=None, core=None):
+ self.core = core
self.checkouts = core.checkouts(checkou... | set core on Registrations and Checkouts instances | py |
diff --git a/packages/vaex-core/vaex/dataframe.py b/packages/vaex-core/vaex/dataframe.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/dataframe.py
+++ b/packages/vaex-core/vaex/dataframe.py
@@ -3607,10 +3607,9 @@ class DataFrame(object):
# print(values_list)
import tabulate
table... | fix: tabulate <I>.x escapes html, fixes #<I> (#<I>) | py |
diff --git a/experiments/utils.py b/experiments/utils.py
index <HASH>..<HASH> 100644
--- a/experiments/utils.py
+++ b/experiments/utils.py
@@ -180,24 +180,19 @@ class WebUser(object):
if self.should_increment(enrollment.experiment, enrollment.goals, goal_name):
self.increment_goal_... | Only write changes back out if something changed Adding a goal does one database update per enrollment the user is in, this way at least these writes are only done if the contents has actually changed. | py |
diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py
index <HASH>..<HASH> 100644
--- a/src/xopen/__init__.py
+++ b/src/xopen/__init__.py
@@ -332,7 +332,7 @@ class PipedCompressionReader(Closing):
# The process did not react to SIGTERM
# send non-interuptable SIGKILL
self.pro... | Always wait for process to exit when closing. | py |
diff --git a/raiden/raiden_service.py b/raiden/raiden_service.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_service.py
+++ b/raiden/raiden_service.py
@@ -848,9 +848,18 @@ class RaidenService(Runnable):
if secret_hash is None:
secret_hash = sha3(secret)
+ # We must check if the secret... | Fix test race condition The test `test_locked_transfer_secret_registered_onchain` was used to guarantee that a node does not reuse a known secret. It first registered the secret and then called `start_mediated_transfer_with_secret`. Because the Raiden node was only querying the blockchain state from confirmed blocks t... | py |
diff --git a/juicer/juicer/Juicer.py b/juicer/juicer/Juicer.py
index <HASH>..<HASH> 100644
--- a/juicer/juicer/Juicer.py
+++ b/juicer/juicer/Juicer.py
@@ -404,7 +404,9 @@ class Juicer(object):
'type_ids': ['rpm'],
'filters': {
'unit': {
- ... | Deleting with a regex seems to work better. | py |
diff --git a/insane/core.py b/insane/core.py
index <HASH>..<HASH> 100755
--- a/insane/core.py
+++ b/insane/core.py
@@ -1193,6 +1193,7 @@ def old_main(argv, options):
solvent, added = setup_solvent(pbc, protein, membrane, options)
+ molecules.extend(added)
return (molecules, protein, membrane, solvent... | Fixed bug due to factoring out solvent | py |
diff --git a/djstripe/admin/admin.py b/djstripe/admin/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin/admin.py
+++ b/djstripe/admin/admin.py
@@ -762,7 +762,7 @@ class WebhookEndpointAdmin(CustomActionMixin, admin.ModelAdmin):
else:
header_fields = ["djstripe_owner_account", "livemode"]
... | Allowed enabled_events model field to be exposed on the WebhookEndpoint Creation Form | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -94,7 +94,7 @@ html_context = {
"project_links": [
ProjectLink("Source", GIT_URL),
ProjectLink("Wiki", "https://github.com/asciimoo/searx/wiki"),
- ProjectLink("Public instances", ... | docs: move wiki/Searx-instances from wiki to docs fix project link in conf.py | py |
diff --git a/pyxmpp/stanzaprocessor.py b/pyxmpp/stanzaprocessor.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/stanzaprocessor.py
+++ b/pyxmpp/stanzaprocessor.py
@@ -109,7 +109,7 @@ class StanzaProcessor:
ufr=None
if self._iq_response_handlers.has_key((sid,ufr)):
key=(sid,ufr... | - accept <iq/> stanzas from own bare jid as own server answers too, fixes #<I> | py |
diff --git a/pysat/_meta.py b/pysat/_meta.py
index <HASH>..<HASH> 100644
--- a/pysat/_meta.py
+++ b/pysat/_meta.py
@@ -1085,16 +1085,18 @@ class Meta(object):
"""
mdata = self.copy()
+ mdata_keys = [key.lower() for key in mdata.keys()]
+ mdata_keys.extend([key.lower() for key in mdata.... | ENH: Reduce number of calls to `in` | py |
diff --git a/green/djangorunner.py b/green/djangorunner.py
index <HASH>..<HASH> 100644
--- a/green/djangorunner.py
+++ b/green/djangorunner.py
@@ -6,7 +6,7 @@ To try running Django tests using green you can run:
To make the change permanent for your project, in settings.py add:
- TEST_RUNNER=green.djangorunner.... | djangorunner: Correct the config declaration. (#<I>) Users who see this and copy/paste will receive an error, because the configuration value in settings.py should be string and therefore enquoted. Correct this docstring to reflect proper usage. | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -2016,7 +2016,8 @@ class Client:
duration=i.duration,
w=i.width,
... | Add filename attribute to video files in albums (#<I>) | py |
diff --git a/dronekit/__init__.py b/dronekit/__init__.py
index <HASH>..<HASH> 100644
--- a/dronekit/__init__.py
+++ b/dronekit/__init__.py
@@ -45,6 +45,7 @@ from threading import Thread
import types
import threading
import math
+import struct
import copy
import collections
from pymavlink.dialects.v10 import ardup... | convert paratenter set value to single precision floating point number (the type used by low level mavlink messages) before sending/comparing it (#<I>) This fixes bougus "timeout setting parameter x to y" messages when the passed double value and it's single representation differ | py |
diff --git a/tests/test_likwid_bench_auto.py b/tests/test_likwid_bench_auto.py
index <HASH>..<HASH> 100644
--- a/tests/test_likwid_bench_auto.py
+++ b/tests/test_likwid_bench_auto.py
@@ -6,6 +6,7 @@ import os
import unittest
from kerncraft import likwid_bench_auto as lba
+from kerncraft import __version__ as kerncr... | fixed likwid bench auto test case | py |
diff --git a/backtrader/sizers/percents_sizer.py b/backtrader/sizers/percents_sizer.py
index <HASH>..<HASH> 100644
--- a/backtrader/sizers/percents_sizer.py
+++ b/backtrader/sizers/percents_sizer.py
@@ -35,6 +35,7 @@ class PercentSizer(bt.Sizer):
params = (
('percents', 20),
+ ('retint', False), ... | Added PercenSizerInt and AllSizerInt which truncate the returned size to an int, suited better for stocks/futures | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100644
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -595,7 +595,7 @@ def parseArgs(args=None):
parser.add_argument('class_names',
action='store',
nargs='+',
- ... | coursera/coursera_dl: Give better example of class name. We had users report bugs when they should have used the class name with a number to indicate the class and session in which they were enrolled. Hopefully, this clears up some confusion. | py |
diff --git a/sqlbridge/__init__.py b/sqlbridge/__init__.py
index <HASH>..<HASH> 100644
--- a/sqlbridge/__init__.py
+++ b/sqlbridge/__init__.py
@@ -16,4 +16,4 @@
##
###############################################################################
-__version__ = "0.1.65"
+__version__ = "0.1.66" | sync with pypi version: | py |
diff --git a/app/resonant-laboratory/server/anonymousAccess.py b/app/resonant-laboratory/server/anonymousAccess.py
index <HASH>..<HASH> 100644
--- a/app/resonant-laboratory/server/anonymousAccess.py
+++ b/app/resonant-laboratory/server/anonymousAccess.py
@@ -220,7 +220,7 @@ class AnonymousAccess(Resource):
if ... | Fix problem with missing public flag on user-created folders in girder | py |
diff --git a/librosa/__init__.py b/librosa/__init__.py
index <HASH>..<HASH> 100644
--- a/librosa/__init__.py
+++ b/librosa/__init__.py
@@ -101,12 +101,12 @@ def istft(d, n_fft=None, hann_w=None, hop=None):
hann_w = n_fft
pass
- if hann_window == 0:
+ if hann_w == 0:
window = numpy.one... | fixed a typo in istft | py |
diff --git a/tests/integration/condition__collection__have_texts_test.py b/tests/integration/condition__collection__have_texts_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/condition__collection__have_texts_test.py
+++ b/tests/integration/condition__collection__have_texts_test.py
@@ -32,7 +32,7 @@ from se... | tuned test fn name to test_should_have_texts (removed unicode notice, since no unicode is tested here anymore; made it consistent with other test names like test_should_have_no_texts") | py |
diff --git a/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py b/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py
index <HASH>..<HASH> 100644
--- a/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py
+++ b/tests/scripts/thread-cert/border_router/test_plat_udp_a... | [test] fix `border_router/test_plat_udp_accessiblity.py` (#<I>) This commit fixes the test by removing the unnecessary argument in the call to `srp_client_remove_host()`. Removing the host on SRP client also removed all previously registered service so we can remove the call to `client.srp_client_remove_service(...)`. | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -88,5 +88,5 @@ class UtilsTests(utils.InclusionTestCase):
def testUnknownClass(self):
class Foo:
pass
- with self.assertRaises(Exception):
- ... | Fix test (it was succeeding, but for the wrong reason). | py |
diff --git a/dimod/binary_quadratic_model.py b/dimod/binary_quadratic_model.py
index <HASH>..<HASH> 100644
--- a/dimod/binary_quadratic_model.py
+++ b/dimod/binary_quadratic_model.py
@@ -2077,8 +2077,8 @@ class BinaryQuadraticModel(Sized, Container, Iterable):
if variable_order is None:
variable_o... | Cast numpy dtypes to floats in from_numpy_vectors | py |
diff --git a/thinc/about.py b/thinc/about.py
index <HASH>..<HASH> 100644
--- a/thinc/about.py
+++ b/thinc/about.py
@@ -4,7 +4,7 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__name__ = 'thinc'
-__version__ = '6.11.1.dev17'
+__version__ = '6.11.1.dev18'
__summary__ = "Practical Machine L... | Increment version to <I>.de<I> | py |
diff --git a/textx/__init__.py b/textx/__init__.py
index <HASH>..<HASH> 100644
--- a/textx/__init__.py
+++ b/textx/__init__.py
@@ -1 +1,4 @@
+from textx.metamodel import metamodel_from_file, metamodel_from_str # noqa
+from textx.langapi import get_language, iter_languages # noqa
+
__version__ = "1.6.dev" | Make metamodel factory methods and lang API available in textx package. | py |
diff --git a/trainerdex/__init__.py b/trainerdex/__init__.py
index <HASH>..<HASH> 100644
--- a/trainerdex/__init__.py
+++ b/trainerdex/__init__.py
@@ -13,7 +13,7 @@ __title__ = 'trainerdex'
__author__ = 'JayTurnr'
__licence__ = 'GNU-GPL'
__copyright__ = 'Copyright 2020 JayTurnr'
-__version__ = '3.0.3'
+__version__ =... | gitflow-hotfix-stash: <I> | py |
diff --git a/ginga/util/io_rgb.py b/ginga/util/io_rgb.py
index <HASH>..<HASH> 100644
--- a/ginga/util/io_rgb.py
+++ b/ginga/util/io_rgb.py
@@ -88,10 +88,12 @@ class RGBFileHandler(object):
image = PILimage.open(filepath)
try:
- info = image._getexif()
- for tag,... | Fix for github issue #<I> - test for _getexif() method when extracting metadata from a PIL image | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,12 +9,11 @@ setup(
version = "0.0.1",
author = "Joe Schafer",
author_email = "joe@jschaf.com",
- home-page = "http://github.com/jschaf/ideone-api/",
- summary = "A Python binding to the Ideone (Online C... | Use url instead of home-page. Separate keywords by commas. | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -245,7 +245,7 @@ def _find_install_targets(name=None,
if kwargs['allow_updates']:
comparison = '>='
if not _fulfills_versio... | Added missing whitespaces after comma to prevent lint-errors. | py |
diff --git a/salt/modules/state.py b/salt/modules/state.py
index <HASH>..<HASH> 100644
--- a/salt/modules/state.py
+++ b/salt/modules/state.py
@@ -1342,7 +1342,7 @@ def sls_id(
)
try:
- st_ = salt.state.HighState(opts, pillar, pillar_enc=pillar_enc, proxy=__proxy__)
+ st_ = salt.state.High... | use the pillar kwarg explicitely | py |
diff --git a/tests/utils_tasks_unittest.py b/tests/utils_tasks_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/utils_tasks_unittest.py
+++ b/tests/utils_tasks_unittest.py
@@ -67,8 +67,8 @@ class DistributeTestCase(unittest.TestCase):
# data to be processed is passed in the keyword arguments.
expec... | the 'flatten_results' flag off by default | py |
diff --git a/multilingual/translation.py b/multilingual/translation.py
index <HASH>..<HASH> 100644
--- a/multilingual/translation.py
+++ b/multilingual/translation.py
@@ -93,6 +93,17 @@ def fill_translation_cache(instance):
translation = instance._meta.translation_model(**field_data)
instance.... | Added a fallback to the translation cache to load translations using normal mechanisms if an object is created without using its standard QuerySet. This fixes the problem with admin log. git-svn-id: <URL> | py |
diff --git a/mpop/satin/mipp_xrit.py b/mpop/satin/mipp_xrit.py
index <HASH>..<HASH> 100644
--- a/mpop/satin/mipp_xrit.py
+++ b/mpop/satin/mipp_xrit.py
@@ -67,11 +67,13 @@ class XritReader(Reader):
load(*args, **kwargs)
-def load(satscene, calibrate=True, area_extent=None, area_def_names=None):
+def load(sa... | Allowing kwargs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,11 +5,7 @@ try:
except ImportError:
from distutils.core import setup
-try:
- import pypandoc
- long_description = pypandoc.convert('README.md', 'rst')
-except ImportError:
- long_description = open('README.... | Changed setup.py to parse markdown README file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,7 @@ testpkgs=[
install_requires=[
"sqlalchemy",
+ "psycopg2",
"zope.sqlalchemy >= 0.4",
"pandas",
"numpy", | Added postgres driver psycopg2 to setup.py | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -1178,7 +1178,7 @@ class StockfishTestCase(unittest.TestCase):
self.engine.position(board)
self.engine.go(infinite=True)
- time.sleep(2)
+ time.sleep(4)
with handler as info:
... | Increase time to come up with secondary line | py |
diff --git a/tests/fixtures.py b/tests/fixtures.py
index <HASH>..<HASH> 100644
--- a/tests/fixtures.py
+++ b/tests/fixtures.py
@@ -24,9 +24,9 @@ def testdb_uri(db_backend):
return 'sqlite://'
elif db_backend == 'postgres':
# This is designed to work on Travis CI
- return 'postgresql://post... | Fix sql connection strings to work with travis. oops. | py |
diff --git a/airflow/providers/amazon/aws/operators/ecs.py b/airflow/providers/amazon/aws/operators/ecs.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/amazon/aws/operators/ecs.py
+++ b/airflow/providers/amazon/aws/operators/ecs.py
@@ -115,11 +115,11 @@ class EcsTaskLogFetcher(Thread):
def run(self) -> None... | Get log events after sleep to get all logs (#<I>) | py |
diff --git a/src/foremast/gcp_iam/create_iam_resources.py b/src/foremast/gcp_iam/create_iam_resources.py
index <HASH>..<HASH> 100644
--- a/src/foremast/gcp_iam/create_iam_resources.py
+++ b/src/foremast/gcp_iam/create_iam_resources.py
@@ -62,7 +62,7 @@ class GcpIamResourceClient:
... | fix: KeyError when retreiving service accounts in a new project | py |
diff --git a/gandi/cli/commands/contact.py b/gandi/cli/commands/contact.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/commands/contact.py
+++ b/gandi/cli/commands/contact.py
@@ -4,6 +4,12 @@ import click
import time
import webbrowser
+# define unicode for python3
+try:
+ unicode
+except NameError:
+ unicode ... | Fixes code to work with python3 Unicode doesn't exist in python3 anymore, use str | py |
diff --git a/bcbio/variation/coverage.py b/bcbio/variation/coverage.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/coverage.py
+++ b/bcbio/variation/coverage.py
@@ -41,6 +41,7 @@ def _prep_coverage_config(samples, config):
species = BUILD_TO_ENSEMBL[samples[0]["genome_build"]]
cov_file, cov_kw = _prep_c... | Ensure build parameter passed along to coverage assessment to allow contig remapping | py |
diff --git a/trezor_agent/gpg/decode.py b/trezor_agent/gpg/decode.py
index <HASH>..<HASH> 100644
--- a/trezor_agent/gpg/decode.py
+++ b/trezor_agent/gpg/decode.py
@@ -248,7 +248,7 @@ def digest_packets(packets):
def load_public_key(stream):
"""Parse and validate GPG public key from an input stream."""
packet... | gpg: fix unpacking for subkey-case | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,14 +7,19 @@ try:
finally:
readme.close()
+version = '1.2'
+download_url = "https://githubcom/albertyw/python-mailgun2/archive/%s.tar.gz" % version
+
setup(
name='pyziptax',
- version='1.2',
+ version=ver... | Add download_url and keywords to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ setup_args.update(dict(
version="1.4.0",
install_requires = install_requires,
extras_require = extras_require,
- description='Composable, declarative data structures for building complex visual... | Updated setup.py and finalized <I> release | py |
diff --git a/raiden/tests/unit/test_pfs_integration.py b/raiden/tests/unit/test_pfs_integration.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/unit/test_pfs_integration.py
+++ b/raiden/tests/unit/test_pfs_integration.py
@@ -691,7 +691,7 @@ def assert_failed_pfs_request(
with pytest.raises(exception_... | Fix bad assert in PFS test `or` has higher precedence than `==`. | py |
diff --git a/handshake.py b/handshake.py
index <HASH>..<HASH> 100644
--- a/handshake.py
+++ b/handshake.py
@@ -15,7 +15,7 @@ WS_GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
WS_VERSION = '13'
MAX_REDIRECTS = 10
HDR_TIMEOUT = 5
-MAX_HDR_LEN = 512
+MAX_HDR_LEN = 1024
class Handshake(object):
@@ -65,7 +65,11 @@ cl... | Increased max header length and added error rather than silent fail | py |
diff --git a/zipline/__init__.py b/zipline/__init__.py
index <HASH>..<HASH> 100644
--- a/zipline/__init__.py
+++ b/zipline/__init__.py
@@ -12,10 +12,13 @@ import finance
import gens
import utils
+from algorithm import TradingAlgorithm
+
__all__ = [
'ndict',
'data',
'finance',
'gens',
- 'util... | REF: Import interface. Makes TradingAlgorithm available at the top-level. So that algorithms can do: ``` import zipline class MyAlgo(zipline.TradingAlgorithm) ``` OR ``` from zipline import TradingAlgorithm class MyAlgo(TradingAlgorithm) ``` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
include_package_data=True,
packages=find_packages(),
package_data=get_package_data("defender"),
- install_requires=["Django>=1.8,<=3.1", "redis<=3.5"],
+ install_requires=["Django>=1.... | Fix redis requirement (#<I>) Allow redis <I>.* | py |
diff --git a/mordred/__main__.py b/mordred/__main__.py
index <HASH>..<HASH> 100644
--- a/mordred/__main__.py
+++ b/mordred/__main__.py
@@ -212,16 +212,9 @@ def submodule(name='__main__'):
mdl = sys.modules[name]
descs = get_descriptors_from_module(mdl)
- prog = getattr(mdl, '__spac__', None)
- if prog... | simplify getting package/module name routine | py |
diff --git a/tests/test_run.py b/tests/test_run.py
index <HASH>..<HASH> 100755
--- a/tests/test_run.py
+++ b/tests/test_run.py
@@ -266,4 +266,5 @@ def test_captured_out_filter(run, capsys):
run.main_function.side_effect = print_mock_progress
with capsys.disabled():
run()
+ sys.stdout.flush()
... | TST: Adds flush after run | py |
diff --git a/python/src/nnabla/utils/cli/cli.py b/python/src/nnabla/utils/cli/cli.py
index <HASH>..<HASH> 100644
--- a/python/src/nnabla/utils/cli/cli.py
+++ b/python/src/nnabla/utils/cli/cli.py
@@ -13,9 +13,11 @@
# limitations under the License.
import argparse
+import os
import sys
import warnings
warnings.fil... | Set timeout to kill itself after command is aborted | py |
diff --git a/s3sign/views.py b/s3sign/views.py
index <HASH>..<HASH> 100644
--- a/s3sign/views.py
+++ b/s3sign/views.py
@@ -111,7 +111,7 @@ class SignS3View(View):
put_request = "PUT\n\n%s\n%d\n%s\n/%s/%s" % (
mime_type, expires, self.get_amz_headers(), S3_BUCKET, object_name)
- signature ... | Update encodestring to encodebytes `encodestring` is deprecated and is removed from Python <I>. This commit replaces it with `encodebytes`, per Python docs: <URL> | py |
diff --git a/benchexec/tools/klee.py b/benchexec/tools/klee.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/klee.py
+++ b/benchexec/tools/klee.py
@@ -67,7 +67,7 @@ class Tool(benchexec.tools.template.BaseTool):
and should give some indication of the failure reason
(e.g., "CRASH", "OUT_OF_MEMORY",... | Remove unneeded `.splitlines()` Output is already a list of lines - no need to split them again. | py |
diff --git a/example/app.py b/example/app.py
index <HASH>..<HASH> 100644
--- a/example/app.py
+++ b/example/app.py
@@ -1,5 +1,5 @@
from flask import Flask, render_template
-from flask_wtf import Form
+from flask_wtf import FlaskForm
from flask_pagedown import PageDown
from flask_pagedown.fields import PageDownField
... | updated Form to FlaskForm | py |
diff --git a/grimoire/elk/enrich.py b/grimoire/elk/enrich.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/enrich.py
+++ b/grimoire/elk/enrich.py
@@ -645,7 +645,7 @@ class Enrich(object):
for rol in roles:
if rol+"_id" not in eitem:
- continue
+ raise RuntimeError(... | [enrich] Check in refresh_identities that we have SH ids. If not raise exception (old gelk version enriched index). | py |
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index <HASH>..<HASH> 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -1146,7 +1146,7 @@ def assert_frame_equal(
Check that left and right DataFrame are equal.
This function is intended to compare two Dat... | DOC: fix typo in docstrings (#<I>) | py |
diff --git a/intranet/apps/auth/backends.py b/intranet/apps/auth/backends.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/auth/backends.py
+++ b/intranet/apps/auth/backends.py
@@ -58,11 +58,13 @@ class KerberosAuthenticationBackend(object):
try:
realm = settings.CSL_REALM
- kinit =... | debug logging for krb | py |
diff --git a/python/ray/setup-dev.py b/python/ray/setup-dev.py
index <HASH>..<HASH> 100755
--- a/python/ray/setup-dev.py
+++ b/python/ray/setup-dev.py
@@ -13,11 +13,11 @@ import subprocess
import ray
-def do_link(package, force=False):
+def do_link(package, force=False, local_path=""):
package_home = os.path.... | Fix setup (#<I>) | py |
diff --git a/src/ef-cf.py b/src/ef-cf.py
index <HASH>..<HASH> 100755
--- a/src/ef-cf.py
+++ b/src/ef-cf.py
@@ -271,7 +271,10 @@ def main():
stack_status = clients["cloudformation"].describe_stacks(StackName=stack_name)["Stacks"][0]["StackStatus"]
if context.verbose:
print("{}".format(... | Fail ef-cf on stack rollback (#<I>) | py |
diff --git a/tests/helper.py b/tests/helper.py
index <HASH>..<HASH> 100644
--- a/tests/helper.py
+++ b/tests/helper.py
@@ -33,7 +33,9 @@ def assert_attrs(entity, expected_attrs):
attr = getattr(entity, k)
if callable(getattr(attr, 'all', None)):
# It's a to-many relation we can folow
- ... | assert attrs should verify length of collection | py |
diff --git a/app/readers/mzidplus.py b/app/readers/mzidplus.py
index <HASH>..<HASH> 100644
--- a/app/readers/mzidplus.py
+++ b/app/readers/mzidplus.py
@@ -77,4 +77,10 @@ def get_specidentitem_percolator_data(item, namespace):
continue
else:
percodata[percoscore] = child.attrib['value'... | Do not crash when we dont have percolator values on certain spectra | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-VERSION = "0.5.1"
+VERSION = "0.5.2"
setup(
name='wikidataintegrator', | increased the number of max_retries to <I> from <I> as per <URL> | py |
diff --git a/microsoftbotframework/response.py b/microsoftbotframework/response.py
index <HASH>..<HASH> 100644
--- a/microsoftbotframework/response.py
+++ b/microsoftbotframework/response.py
@@ -130,8 +130,8 @@ class Response:
conversation_id = self['conversation']["id"] if conversation is None else conversati... | Fixed URL for reply_to_activity endpoint | py |
diff --git a/examples/project_fully_featured/project_fully_featured/sensors/hn_tables_updated_sensor.py b/examples/project_fully_featured/project_fully_featured/sensors/hn_tables_updated_sensor.py
index <HASH>..<HASH> 100644
--- a/examples/project_fully_featured/project_fully_featured/sensors/hn_tables_updated_sensor.p... | update sensor keys in fully featured example (#<I>) | py |
diff --git a/bigchaindb/version.py b/bigchaindb/version.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/version.py
+++ b/bigchaindb/version.py
@@ -1,2 +1,2 @@
-__version__ = '0.8.0.dev'
-__short_version__ = '0.8.dev'
+__version__ = '0.8.0'
+__short_version__ = '0.8' | Updated version.py to <I> | py |
diff --git a/vcspull/testsuite/config.py b/vcspull/testsuite/config.py
index <HASH>..<HASH> 100644
--- a/vcspull/testsuite/config.py
+++ b/vcspull/testsuite/config.py
@@ -212,7 +212,10 @@ class InDirTest(ConfigTestDirectoryMixin):
]
result = config.in_dir(self.CONFIG_DIR)
- self.assertItemsEq... | Python <I> test compatibility for assertCountEqual | py |
diff --git a/ipyrad/assemble/refmap.py b/ipyrad/assemble/refmap.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/refmap.py
+++ b/ipyrad/assemble/refmap.py
@@ -382,8 +382,9 @@ def fetch_cluster_se(data, samfile, chrom, rstart, rend):
(not skip):
## store the seq
if read1.is_reve... | Fix very nasty refmap SE bug. | py |
diff --git a/troposphere/policies.py b/troposphere/policies.py
index <HASH>..<HASH> 100644
--- a/troposphere/policies.py
+++ b/troposphere/policies.py
@@ -6,6 +6,7 @@ class AutoScalingRollingUpdate(AWSProperty):
props = {
'MaxBatchSize': (positive_integer, False),
'MinInstancesInService': (intege... | Add MinSuccessfulInstancesPercent to AutoScalingRollingUpdate | py |
diff --git a/catan/game.py b/catan/game.py
index <HASH>..<HASH> 100644
--- a/catan/game.py
+++ b/catan/game.py
@@ -314,7 +314,7 @@ class Game(object):
self.board.place_piece(piece, node)
self.catanlog.log_player_buys_settlement(self.get_cur_player(), node)
if self.state.is_in_pregame():
- ... | Pregame settlment/road buying fixed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,6 @@ DOCS_REQS = [SPHINX_REQ]
TEST_REQS = [
'hypothesis < 4',
- 'hypothesis-pytest < 1',
'py < 2',
'pytest < 5',
'pytest-benchmark >= 3.2.0, < 4', | Remove hypothesis-pytest dependency According to <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ except ImportError:
version = tika.__version__
-with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
+with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
_... | Switch to markdown on PyPI long description. | py |
diff --git a/nodeconductor/core/log.py b/nodeconductor/core/log.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/log.py
+++ b/nodeconductor/core/log.py
@@ -119,6 +119,12 @@ class EventFormatter(logging.Formatter):
)
self.add_related_details(message, instance, 'iaas_instance', 'hostname')
+ ... | Expose flavor data in instance creation event log - NC-<I> | py |
diff --git a/simuvex/s_format.py b/simuvex/s_format.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_format.py
+++ b/simuvex/s_format.py
@@ -157,6 +157,9 @@ class FormatParser(SimProcedure):
elif type in simuvex.s_type.ALL_TYPES.keys():
s_type = simuvex.s_type.ALL_TYPES[type](self.state.arch)
+ ... | SimProcedureError in case of unknown type | py |
diff --git a/src/hamster/lib/stuff.py b/src/hamster/lib/stuff.py
index <HASH>..<HASH> 100644
--- a/src/hamster/lib/stuff.py
+++ b/src/hamster/lib/stuff.py
@@ -36,10 +36,12 @@ import os
from hamster.lib import datetime as dt
-# datetime_to_hamsterday = dt.get_day
-# hamster_now = dt.datetime.now
-# hamster_today = ... | uncomment backward compatibility definitions | py |
diff --git a/src/you_get/extractors/nanagogo.py b/src/you_get/extractors/nanagogo.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/nanagogo.py
+++ b/src/you_get/extractors/nanagogo.py
@@ -17,6 +17,8 @@ def nanagogo_download(url, output_dir='.', merge=True, info_only=False, **kwargs
info = json.loads(get... | [nanagogo] skip erroneous posts | py |
diff --git a/multi_key_dict/multi_key_dict.py b/multi_key_dict/multi_key_dict.py
index <HASH>..<HASH> 100644
--- a/multi_key_dict/multi_key_dict.py
+++ b/multi_key_dict/multi_key_dict.py
@@ -91,7 +91,7 @@ class multi_key_dict(object):
all_select_same_item = False
break... | removed condition that would always resolve to 'true' | py |
diff --git a/libs/utils.py b/libs/utils.py
index <HASH>..<HASH> 100644
--- a/libs/utils.py
+++ b/libs/utils.py
@@ -128,6 +128,8 @@ class TimeoutError(Exception):
try:
import signal
+ if not hasattr(signal, 'SIGALRM'):
+ raise ImportError('signal')
class timeout:
def __init__(self, second... | fix signal not avaliable in windows | py |
diff --git a/salt/runners/spacewalk.py b/salt/runners/spacewalk.py
index <HASH>..<HASH> 100644
--- a/salt/runners/spacewalk.py
+++ b/salt/runners/spacewalk.py
@@ -149,19 +149,19 @@ def _get_session(server):
return client, key
-def call(server, command, *args, **kwargs):
+def api(server, command, *args, **kwarg... | renamed spacewalk.call to spacewalk.api | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.